I am a user control that has a radio button and I am trying to ajaxyfy the radio button from the main aspx page. The code is as followed:
Control MyControl = (Control)Page.FindControl("WebUserControl1");
RadioButton MyButton = (RadioButton)MyControl.FindControl("rdbFirstOne");
Label MyLabel = (Label)MyControl.FindControl("Label1");
RadAjaxManagerProxy1.AjaxSettings.AddAjaxSetting(MyButton, MyLabel, null);
When I debug this, I get object reference error on "RadioButton MyButton = (RadioButton)MyControl.FindControl("rdbFirstOne");
"
line.
Please help. Thanks.
Control MyControl = (Control)Page.FindControl("WebUserControl1");
RadioButton MyButton = (RadioButton)MyControl.FindControl("rdbFirstOne");
Label MyLabel = (Label)MyControl.FindControl("Label1");
RadAjaxManagerProxy1.AjaxSettings.AddAjaxSetting(MyButton, MyLabel, null);
When I debug this, I get object reference error on "RadioButton MyButton = (RadioButton)MyControl.FindControl("rdbFirstOne");
"
line.
Please help. Thanks.