Keno
|
| Posted: 08/29/2002, 8:37 AM |
|
Hi.
I created a page (top.asp) an make it includable, on this page I put a label
(let's name it {UserName}) and in the Before Show event I wrote this code:
UserName.value = "someone name"
When I include this page on the default.asp page, I got the following error:
Microsoft VBScript runtime error '800a01f4'
Variable is undefined: 'UserName'
/TestProject/Top_events.asp, line 11
Any ideas of what is wrong?.
Thanks
Keno.
|
|
|
 |
DonB
|
| Posted: 08/29/2002, 6:03 PM |
|
It is necessary to prefix with the page name to get it to work:
Header.Textbox1.Value = "Hello!"
works, whereas:
TextBox1.Value = "Hello!"
does not. My header page is "Header.Asp"
don
"Keno" <keno@newsgroups.com> wrote in message
news:aklf4c$e81$1@news.codecharge.com...
> Hi.
> I created a page (top.asp) an make it includable, on this page I put a
label
> (let's name it {UserName}) and in the Before Show event I wrote this code:
> UserName.value = "someone name"
>
> When I include this page on the default.asp page, I got the following
error:
>
> Microsoft VBScript runtime error '800a01f4'
> Variable is undefined: 'UserName'
> /TestProject/Top_events.asp, line 11
>
> Any ideas of what is wrong?.
> Thanks
> Keno.
>
>
>
|
|
|
 |
Keno
|
| Posted: 08/29/2002, 7:41 PM |
|
Thanks don for your help.
"DonB" <7432D63DBB01D03A196B1EDD80E8@comcast.net> wrote in message
news:akmg9d$b4l$1@news.codecharge.com...
> It is necessary to prefix with the page name to get it to work:
>
> Header.Textbox1.Value = "Hello!"
>
> works, whereas:
>
> TextBox1.Value = "Hello!"
>
> does not. My header page is "Header.Asp"
>
> don
>
>
> "Keno" <keno@newsgroups.com> wrote in message
>news:aklf4c$e81$1@news.codecharge.com...
> > Hi.
> > I created a page (top.asp) an make it includable, on this page I put a
> label
> > (let's name it {UserName}) and in the Before Show event I wrote this
code:
> > UserName.value = "someone name"
> >
> > When I include this page on the default.asp page, I got the following
> error:
> >
> > Microsoft VBScript runtime error '800a01f4'
> > Variable is undefined: 'UserName'
> > /TestProject/Top_events.asp, line 11
> >
> > Any ideas of what is wrong?.
> > Thanks
> > Keno.
> >
> >
> >
>
>
|
|
|
 |
|