Advice on Writing Control Adapters

Discussion in 'ASP .Net' started by aeden.jameson@gmail.com, Jul 2, 2006.

  1. Guest

    I would like to change the markup put out by the Login control to
    something more akin to

    <div>
    <h4>Title</h4>
    <label for="username">UserName</label>
    <input id="username" type="textbox"/>
    <label for="password">Password</label>
    <input id="password" type="password"/>
    <input id="rememberMe" type="checkbox"/>
    <label for="rememberMe">Remeber Me</label>
    <input type="submit" value="Log In"/>
    </div>

    I decided to write a control adapter to achieve this. The default
    rendering for some sub-controls, like the Log-In button above, have
    postback javascript for the onclick event. Currently, I find the
    button control in WebControlAdapter.Controls and call its Render
    method. My question is, what is the best way to render some of the
    sub-controls like the button?

    Cheers,
    Aeden
     
    , Jul 2, 2006
    #1
    1. Advertising

  2. frankcan

    Joined:
    Nov 5, 2006
    Messages:
    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. Morys Kenworthy

    .NET Version 1.1 - Data Adapters

    Morys Kenworthy, Apr 1, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    1,517
    Cowboy \(Gregory A. Beamer\)
    Apr 1, 2004
  2. Replies:
    2
    Views:
    280
    Kevin Spencer
    May 1, 2007
  3. Jordan S.

    Whither Control Adapters?

    Jordan S., Feb 1, 2008, in forum: ASP .Net
    Replies:
    0
    Views:
    287
    Jordan S.
    Feb 1, 2008
  4. Mark B
    Replies:
    3
    Views:
    490
    Gregory A. Beamer
    Jul 10, 2009
  5. ghause

    Distributing control adapters

    ghause, Feb 23, 2007, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    119
    ghause
    Feb 23, 2007
Loading...

Share This Page