G
George
I need to call my visitor tracking script selectively from Code Behind using
the following sub, but it gives me an Error on Page. I've removed my account
and other information, but the format is the same. I don't really know
javascript, I just copied my tracking code from my HTML page. I'm just
learning ASP.NET, too, so not sure where my mistake is.
In page load, I am doing:
If Not IsPostBack then
TrackVisit()
End If
Private Sub TrackVisit()
Dim v As String = "<script type='text/javascript'>varA='00000000';var" & _
"P='DetectName';var U='DetectUrl';</script><scripttype='text/javascript'" & _
"src='http://www.3dstats.com/xxxx/yyyyy.zzz'></script><noscript>" & _
"<imgsrc='http://www.3dstats.com/xxxx/yyyy.zzz?usr=00000000'" & _
"border=0 height=0 width=0></noscript>"
RegisterStartupScript("visit", v)
End Sub
Thanks,
George
the following sub, but it gives me an Error on Page. I've removed my account
and other information, but the format is the same. I don't really know
javascript, I just copied my tracking code from my HTML page. I'm just
learning ASP.NET, too, so not sure where my mistake is.
In page load, I am doing:
If Not IsPostBack then
TrackVisit()
End If
Private Sub TrackVisit()
Dim v As String = "<script type='text/javascript'>varA='00000000';var" & _
"P='DetectName';var U='DetectUrl';</script><scripttype='text/javascript'" & _
"src='http://www.3dstats.com/xxxx/yyyyy.zzz'></script><noscript>" & _
"<imgsrc='http://www.3dstats.com/xxxx/yyyy.zzz?usr=00000000'" & _
"border=0 height=0 width=0></noscript>"
RegisterStartupScript("visit", v)
End Sub
Thanks,
George