asp.net manage state of classic asp controls.

  • Thread starter Thread starter drewsdepaul
  • Start date Start date
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
 
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"); } %> >
 
Back
Top