>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?
You could have the JavaScript function save the value (the version number) to a (hidden) textbox in the page and automatically submit the page from the JavaScript function. Something along the lines of:
document.frmMyForm.txtAdobeVersion.value="theversiongoeshere";
document.frmMyForm.submit();
Hector Correa