CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> CodeChargeStudio.Discussion

 Can't replace dynamic content on a includable page.

Print topic Send  topic

Author Message
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.
> >
> >
> >
>
>


   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.