asp.net manage state of classic asp controls.

D

drewsdepaul

I have a asp.net web form running in the 2.0 framework.

The page has a mixture of asp.net controls and older controls (ex:
<input type="radio" )


When the pages posts back to itself, all of the user entry for the
aspx controls are saved...because viewstate is managed for me.

But the user entry in the old controls...like radio buttons or
dropdownlists are not saving the user input.

I really can't convert these controls to aspx controls. The
dropdownmenu is using an optgroup.

I've been reading some older articles about using hidden fields for
this..but was wondering if there is a better way to do this...with
examples.

Thanks
 
D

drewsclark

really?

so if I have this...
<select name="contact_industry" >

I can do this? <select name="contact_industry" runat="server" >

here is how I figured out how to do this for radio buttons.

<input type="radio" name="MembershipType" value="Sponsor1_ks" <% if
( Request.Form.Get("MembershipType") == "Sponsor1_ks")
{ Response.Write ("checked"); } %> >
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top