Groups | Blog | Home
all groups > asp.net building controls > may 2004 >

asp.net building controls : Sending output via a user control


Eric Caron
5/14/2004 7:26:36 PM
Ok, newbie question here: I want to display a dynamic menu using
Response.Write statements in a user control, but the output comes out
at the top of the rendered page instead of where the user control is
located on the page. Is there a way around this?

TIA.

Éric

Scott Mitchell [MVP]
5/15/2004 1:44:40 AM
[quoted text, click to view]

Generate the HTML output in a string (or better yet, using a
StringBuilder), and then squirt the output to the Text property of a
Literal control that is strategically placed on the page precisely where
you want the HTML emitted...

--

Scott Mitchell
mitchell@4guysfromrolla.com
http://www.4GuysFromRolla.com
http://www.ASPFAQs.com
http://www.ASPMessageboard.com

AddThis Social Bookmark Button