|
.net
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Error BC30451I am getting the error "BC30451: Name '__w' is not declared". How can I fix
this? Here is my code... <script language="javascript"> document.form1.PageUrl.value='<%=Request.ServerVariables("HTTP_REFERER")%>'; </script> hi,
that error is a compiler error. i'd be sure it isn't anything to do with the code you posted. it looks like you are attempting to access a variable called "__w" that is either private or doesn't exist. try posting the relevant code. tim Show quoteHide quote "SinCity" <n**@gsw-inc.com> wrote in message news:%23GmlAgW0GHA.3512@TK2MSFTNGP04.phx.gbl... >I am getting the error "BC30451: Name '__w' is not declared". How can I >fix > this? Here is my code... > > <script language="javascript"> > document.form1.PageUrl.value='<%=Request.ServerVariables("HTTP_REFERER")%>'; > </script> > > > hi, Ok let me add a little more info....if I take out the information containing > that error is a compiler error. i'd be sure it isn't anything to do with > the code you posted. > it looks like you are attempting to access a variable called "__w" that is > either private or doesn't exist. > > try posting the relevant code. >> <script language="javascript"> >> document.form1.PageUrl.value='<%=Request.ServerVariables("HTTP_REFERER")%>'; >> </script> the ASP referer variable then the error goes away. For example I do not get an error if I use this code... <script language="javascript"> document.form1.PageUrl.value=''; </script>
Other interesting topics
OleDbDataAdapter created in code behaves differently from one created by wizard.
.NET 2005 Master Page prevents using style sheets? Problem with RaiseCallbackEvent 'Could not load file or assembly' every few days - asp.net 1.1 Q about ASP speeds Iframe extra space Security exception with impersonate true for a webservice Problems with System.Net.Mail Managing Database Connections! |
|||||||||||||||||||||||