468,107 Members | 1,469 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,107 developers. It's quick & easy.

Working with heading elements

Hi,

I'm currently creating some ASPX pages, and I'd like to be able to
dynamically create the heading elements (H1-H6). I've been looking
through the available Types in C#, and so far I can't seem to find
anything that is *specific* to heading elements.

Is there any particular way I should do this, or is the generic
"System.Web.UI.HtmlControls.HtmlGenericControl " my best hope?

Cheers,

--
Dylan Parry
http://electricfreedom.org | http://webpageworkshop.co.uk

The opinions stated above are not necessarily representative of
those of my cats. All opinions expressed are entirely your own.
Jun 27 '08 #1
1 930
"Dylan Parry" <us****@dylanparry.comwrote in message
news:g3**********@dylanparry.com...
I'm currently creating some ASPX pages, and I'd like to be able to
dynamically create the heading elements (H1-H6). I've been looking
through the available Types in C#, and so far I can't seem to find
anything that is *specific* to heading elements.

Is there any particular way I should do this, or is the generic
"System.Web.UI.HtmlControls.HtmlGenericControl " my best hope?
It would be relatively simple to write your own server control for this
purpose, and in fact it is an excellent beginner exercise for learning how
to write a server control.
For inspiration, see this example:
http://msdn.microsoft.com/en-us/library/f820d25y.aspx

Jun 27 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

26 posts views Thread by Dave Patton | last post: by
25 posts views Thread by Haines Brown | last post: by
21 posts views Thread by Atanas Boev | last post: by
5 posts views Thread by Chris Reigrut | last post: by
3 posts views Thread by Tom wilson | last post: by
5 posts views Thread by dan.j.weber | last post: by
5 posts views Thread by MaxiWheat | last post: by
1 post views Thread by Solo | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.