Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling javascript in .aspx, returning a value
Message
From
07/09/2004 11:16:30
 
 
To
All
General information
Forum:
Internet
Category:
Javascript
Title:
Calling javascript in .aspx, returning a value
Miscellaneous
Thread ID:
00939973
Message ID:
00939973
Views:
65
I have a .aspx page in .NET that calls a javascript function. (which is in the .html code behind of the page) I use the following code to call the function in the .aspx page:
StringBuilder checkForAcrobat = new StringBuilder();
checkForAcrobat.Append("<script language='javascript'>");
checkForAcrobat.Append("checkAcrobatVersion();");
checkForAcrobat.Append("</script>");
RegisterStartupScript("checkForAcrobat", checkForAcrobat.ToString());
How can I return a value from this javascript function back to my .aspx page, and use if for further evaluation? I'm very new to javascript, so I'm not sure if I'm approaching this in the right way.
Say, for instance, in my example, the function checkAcrobatVersion returns the acrobatVersion. How can I return the acrobatVersion, so I can use it in my .aspx code page? Any help in this matter would be GREATLY appreciated. I have searched and searched, but could not find anything that helps.
Reply
Map
View

Click here to load this message in the networking platform