With SmartNavigation =true a call to display a simple javascript alert
returns in IE showing an "Invalid Pointer" error.
Apparently when SmartNavigation is disabled then the alert works correctly.
When I remove the <doctype> tag the alert works again.
I'd prefer to keep a doctype tag in my page if at all possible.
Doc type:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
Javascript function in code behind:
Public Sub ASPNET_MsgBox(B yVal Message As String)
System.Web.Http Context.Current .Response.Write ("<SCRIPT
LANGUAGE=""Java Script"">" & vbCrLf)
System.Web.Http Context.Current .Response.Write ("alert(""" & Message & """)" &
vbCrLf)
System.Web.Http Context.Current .Response.Write ("</SCRIPT>")
End Sub
Does anyone know why this is?
- Castro