From within my page load event I need to be able to call a javascript function and get the value the function returns. For example:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim s As String
s = "<script>MyFunction();"
s = s & vbCrLf
s = s & "</script>"
Page.RegisterClientScriptB
lock("Clie
ntScript",
s)
End Sub
**MyFunction Code is in the head section of the aspx document.
How do I get the value that the function MyFunction returns???
Start Free Trial