Friday, March 16, 2012

Multiple radio button using a single Function but differnt behaviour

on .aspx page :
==================




then write following code on .aspx.cs page :
================================================
protected void RadioButton1_CheckedChanged(object sender, EventArgs e)
{
RadioButton rbtCommon = (RadioButton)sender;
if (rbtCommon.Checked == true)
Label1.Text = "i am in " + rbtCommon.ID.ToString();
}

No comments:

Post a Comment

Don't judge me like you know me.Don't talk to me if you don't like me. I am my own person and If you don't like that i don't give a f***