Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


pass variable to server side function

 
Logged in as: Guest
arrSession:exec spGetSession 2,3,52600
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> ASP >> pass variable to server side function
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 pass variable to server side function - 10/10/2007 11:23:03 PM   
  robszar


Posts: 173
Score: 0
Joined: 2/27/2005
From:
Status: offline
is there a way to pass variables to server side scripts?  I'm new to ASP, sorry for all the questions if they seem dumb.



<html>
<head>
</head>
<body>
<input type=text name=UserNameField>
<input type=Button value="Rename Computer" name=Button1 onclick=displayUserName()>
<script language="vbscript">
sub displayUserName()

<%call GetUser("UserNameField.value")%>
end sub

<% Function GetUser(User)%>
msgbox User
<% end function %>

</script>

</body>
</HTML>
 
 
Post #: 1
 
 RE: pass variable to server side function - 10/11/2007 1:21:22 PM   
  webber123456

 

Posts: 34
Score: 0
Joined: 9/20/2007
Status: offline
lots of easy examples here:

http://msconline.maconstate.edu/tutorials/ASP/default.htm

(in reply to robszar)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> ASP >> pass variable to server side function Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts