Sunday, March 11, 2012

RadioButton with Ajax

Hi Shikha

Set AutoPostBack="true"

Hope this helps


You can declare a radio button like: -

<asp:RadioButtonID="rdoTest1"GroupName="test"runat="server"AutoPostBack="True"OnCheckedChanged="rdoTest1_CheckedChanged"/>

c#

protectedvoid rdoTest1_CheckedChanged(object sender,EventArgs e)

{

if (rdoTest1.Checked)

Response.Write("Checked");

else

Response.Write("UnChecked");

}

In the above way, you can use the radio button postback. If you have still have any problem please write.

No comments:

Post a Comment