Yes I am using ajax and I am brushing up on my javascript. I'll say it again, the real problem is having the <Script> tag inside the <Script> section of the page.
I did come up with a work around. I have a class that has some functions in it. I added this function to it:
Public Shared Function JavaReturn(ByVal SomeJavaString As String) As String
Return "<script language='javascript' type='text/javascript'>" & SomeJavaString & "</script>"
End Function
I now am able to within my <Script> tags be able to run some basic java like below and not: have issues with the <Script> tags.
<
script runat="server">
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Response.Write(clsFunctions.JavaReturn("window.open('','_self','');window.close();")) End Sub
</
script>
Although this works if I don't need to use the function I would rather not. Any thoughts?
Thanks
Enter your message below
Sign in or Join us (it's free).