Hi,
I have 2 panels in an aspx page.
Panel1 - has 1 radiobuttonlist with Yes and No as options
Panel 2 - has 2 textboxes.
I want when Yes from radiobuttonlist is selected - the panel 2 to be displayed and the same to be hdden with No is selected.
The following the code i am using in aspx page:
<telerik:RadAjaxManager ID="RadAjaxManager2" runat="server">
<AjaxSettings>
</telerik:AjaxSetting>
<telerik:AjaxSetting AjaxControlID="pnlRadioButtons">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="pnlRadioButtons" />
</UpdatedControls>
</telerik:AjaxSetting>
<telerik:AjaxSetting AjaxControlID="pnlMiddleData">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="pnlMiddleData" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
The following is the C# code:
protected void RadBtnSystemUser_SelectedIndexChanged(object sender, EventArgs e)
{
if (RadBtnSystemUser.SelectedValue.ToString() == "1")
{
pnlMiddleData.Visible = true;
reqFldUserId.Enabled = true;
}
else
{
pnlMiddleData.Visible = false;
reqFldUserId.Enabled = false;
}
}
This throws an error saying that since are in 2 seperate update panels an error occured.
Is this possible?
Please help.
--
Regards,
Debashis
I have 2 panels in an aspx page.
Panel1 - has 1 radiobuttonlist with Yes and No as options
Panel 2 - has 2 textboxes.
I want when Yes from radiobuttonlist is selected - the panel 2 to be displayed and the same to be hdden with No is selected.
The following the code i am using in aspx page:
<telerik:RadAjaxManager ID="RadAjaxManager2" runat="server">
<AjaxSettings>
</telerik:AjaxSetting>
<telerik:AjaxSetting AjaxControlID="pnlRadioButtons">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="pnlRadioButtons" />
</UpdatedControls>
</telerik:AjaxSetting>
<telerik:AjaxSetting AjaxControlID="pnlMiddleData">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="pnlMiddleData" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
The following is the C# code:
protected void RadBtnSystemUser_SelectedIndexChanged(object sender, EventArgs e)
{
if (RadBtnSystemUser.SelectedValue.ToString() == "1")
{
pnlMiddleData.Visible = true;
reqFldUserId.Enabled = true;
}
else
{
pnlMiddleData.Visible = false;
reqFldUserId.Enabled = false;
}
}
This throws an error saying that since are in 2 seperate update panels an error occured.
Is this possible?
Please help.
--
Regards,
Debashis