Adding a button to RenderContents Routine

Discussion in 'ASP .Net Building Controls' started by Amb, Sep 3, 2008.

  1. Amb

    Amb Guest

    I am building a control that shows a "Contract" that builds the contract from
    the database. This control will be used in several projects as it is a
    common task in our software.

    I want to put a button in the renderContents output so that a "Submit"
    appears, but the click event goes back to the control rather than the events
    of the consuming pages. (I will put in some user events for programmers to
    use when they use my control, but there is some generic database code that
    has to happen everytime no matter where this is used).

    We are trying to avoid Javascript if possible. How do I pick up and read
    the user click event inside the server control.

    Also (and slightly independent of the above): Can I output "<asp:controls>"
    controls inside RenderContents? Will they then regenerate correctly in a
    second parse?
    Amb, Sep 3, 2008
    #1
    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. Alex Nitulescu

    Render vs RenderContents

    Alex Nitulescu, Feb 24, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    12,529
    Marc BICHARA
    Aug 17, 2009
  2. Nathan Sokalski
    Replies:
    1
    Views:
    533
    Nathan Sokalski
    Jul 31, 2009
  3. Nathan Sokalski
    Replies:
    1
    Views:
    1,335
    Nathan Sokalski
    Jul 31, 2009
  4. Doug Holland

    RenderContents

    Doug Holland, Sep 17, 2004, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    159
    Doug Holland
    Sep 17, 2004
  5. Chris Simmons

    RenderContents vs RenderChildren

    Chris Simmons, Oct 29, 2004, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    315
    Chris Simmons
    Oct 29, 2004
Loading...

Share This Page