radiobuttonfor

RadioButtonFor in ASP.NET MVC 2

Can someone provide a simple example of how to properly use Html.RadioButtonFor? Let's say it's a simple scenario where my model has a string property named Gender. I want to display two radio buttons: "Male" and "Female". What is the most clean way to implement this while retaining the selected value in an Edit view? ...

How to Set RadioButtonFor() in ASp.net MVC 2 as Checked by default

hi, How can i Set RadioButtonFor() as Checked By Default <%=Html.RadioButtonFor(m => m.Gender,"Male")%> there is way out for (Html.RadioButton) but not for (Html.RadioButtonFor) any Ideas? ...

Radio button using Html.RadioButtonFor runs server code when clicked

How can I use Html.RadioButtonFor to create radio button which when clicked runs code on the server and controls visibility of certain text box. earlier I used to create <asp:control with autopostback="true" Thanks ...