ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> DevelopMentor-dotNET
DevelopMentor-dotNET
Re: [DOTNET] Programmatically accessing Webform HTML
by Thomas Tomiczek other posts by this author
Nov 23 2001 4:37PM messages near this date
Re: [DOTNET] Aesthetics Question on the CodeDOM | Re: [DOTNET] Copying files from http:// to Local Drive
The next one with this wish :-)

If you find an answer elsewhere, please post it to the list, too -
that's a sometimes necessary thing (especially with the Body tag),
though I think you will find out it is not possible. The HTML does not
exist in a form that is more organized tan a data stream. The stream is
constructed dynamically, and I do not thing you can just add a tag to
the body tag.

BUT - this is only my opinion, I never tried it out severely, so I might
err here.

Thomas Tomiczek
THONA Consulting Ltd.
Microsoft MVP (.NET / C#)

-----Original Message-----
From: Greg Gates [mailto:ggates@[...].CA] 
Sent: Freitag, 23. November 2001 17:31
To: DOTNET@[...].COM
Subject: [DOTNET] Programmatically accessing Webform HTML

Hello

I would like to programmatically access the elements that exist in the
HTML
view of a Webform from the code behind (aspx.cs) file.
Specifically, I wish to to add an attribute to the BODY element at
runtime.
It's not clear to me how to get at the BODY element from the code behind
page, if it is indeed possible.

thanks, Greg

You can read messages from the DOTNET archive, unsubscribe from DOTNET,
or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved