Error BC30451

  • Thread starter Thread starter SinCity
  • Start date Start date
S

SinCity

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,
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
 
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.

Ok let me add a little more info....if I take out the information containing
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>
 
hi, that's very strange then. i tried your code and it worked fine.
if it is an Asp.Net server error that comes up, can you post the stack trace
(and entire error message) so we can determine where it is coming from.

thanks
tim
 
Back
Top