M
Marc Castrechini
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(ByVal Message As String)
System.Web.HttpContext.Current.Response.Write("<SCRIPT
LANGUAGE=""JavaScript"">" & vbCrLf)
System.Web.HttpContext.Current.Response.Write("alert(""" & Message & """)" &
vbCrLf)
System.Web.HttpContext.Current.Response.Write("</SCRIPT>")
End Sub
Does anyone know why this is?
- Castro
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(ByVal Message As String)
System.Web.HttpContext.Current.Response.Write("<SCRIPT
LANGUAGE=""JavaScript"">" & vbCrLf)
System.Web.HttpContext.Current.Response.Write("alert(""" & Message & """)" &
vbCrLf)
System.Web.HttpContext.Current.Response.Write("</SCRIPT>")
End Sub
Does anyone know why this is?
- Castro