Hi
I need to insert HTML into my ASP.Net page but I can't find anywhere how
to do it.
If I try using custom tags such as
<p ID=MyText>I want to change this</p>
Then when I try to do this from my C# function
MyText.innerText="TEST";
I get this:
Compiler Error Message: CS0234: The type or namespace name 'MyText' does
not exist in the class or namespace 'ASP'
Any ideas?
The control needs to be a server control to be accessible from server
script. Add
runat="server" to the <p> tag.
Dave
> -----Original Message-----
> From: Simon Knox [mailto:simon.knox@s...]
> Sent: 31 May 2001 06:42
> To: ASP+
> Subject: [aspx] How do you dynamicly change HTML in ASP.Net?
>
>
>
> Hi
>
> I need to insert HTML into my ASP.Net page but I can't find
> anywhere how
> to do it.
>
> If I try using custom tags such as
>
> <p ID=MyText>I want to change this</p>
>
> Then when I try to do this from my C# function
>
> MyText.innerText="TEST";
>
> I get this:
>
> Compiler Error Message: CS0234: The type or namespace name
> 'MyText' does
> not exist in the class or namespace 'ASP'
>
> Any ideas?
> ---
> * Fast, Full-Featured Microsoft Excel Web Reports & Charts!
> A breakthrough in high performance Web application
> development, SoftArtisans
> ExcelWriter 1.1 supports native Excel charting, image insertion, and
> advanced functions & formatting. One click generates
> presentation-quality
> Excel spreadsheets-and ExcelWriter performs over 100 times
> faster than the
> Excel Object. Several editions, including ExcelWriterFREE,
> are available.
> URL:<http://adtracking.wrox.com/track.asp?x=p2p%2Fe%2Fd%26w%2F
softart&url=http://www.softartisans.com/softartis> ans/excelwriter.html>
>