Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling javascript in .aspx, returning a value
Message
From
08/09/2004 08:44:37
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Calling javascript in .aspx, returning a value
Miscellaneous
Thread ID:
00940239
Message ID:
00940239
Views:
53
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.
Next
Reply
Map
View

Click here to load this message in the networking platform