Error BC30451

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>
 
T

Tim_Mac

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
 
S

SinCity

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>
 
T

Tim_Mac

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top