Sending output via a user control

Discussion in 'ASP .Net Building Controls' started by Eric Caron, May 15, 2004.

  1. Eric Caron

    Eric Caron Guest

    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
     
    Eric Caron, May 15, 2004
    #1
    1. Advertising

  2. Eric Caron wrote:
    > 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?


    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

    http://www.4GuysFromRolla.com
    http://www.ASPFAQs.com
    http://www.ASPMessageboard.com

    * When you think ASP, think 4GuysFromRolla.com!
     
    Scott Mitchell [MVP], May 15, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mad Scientist Jr
    Replies:
    0
    Views:
    644
    Mad Scientist Jr
    Mar 22, 2006
  2. Steve G
    Replies:
    12
    Views:
    789
    Patricia Shanahan
    Aug 6, 2006
  3. zb
    Replies:
    1
    Views:
    347
    John Saunders [MVP]
    Jul 18, 2007
  4. Jonathan Wood

    User Control to Control Other User Control

    Jonathan Wood, Jan 24, 2010, in forum: ASP .Net
    Replies:
    4
    Views:
    556
    Jonathan Wood
    Feb 2, 2010
  5. F. Da Costa
    Replies:
    0
    Views:
    149
    F. Da Costa
    Feb 2, 2004
Loading...

Share This Page