Hi All,
This question has been asked many times and I've checked most of the sites with resolutions. None worked for me.
1) I have a page which is a content page to a Masterpage .
2) I have a ScriptManager on the Masterpage.
3) On the content page I have a TabContainer control.
4) On one of the tabs I have a form, part of which (a FileUpload control) I set to disabled if a Checkbox is ticked.
So I decided to put an UpdatePanel around this FileUpload control and set a trigger for the Checkbox (which has Autopostback="t rue"). When stepping through the project the OnCheckChanged where the FileUpload is enabled/disabled is called but the UpdatePanel is not updating i.e. The FileUpload remains disabled.
Below is my code:
I tried many different things like putting the checkbox out of the updatepanel but still nothing. Any idea what is going on?
Thanks
Luk
This question has been asked many times and I've checked most of the sites with resolutions. None worked for me.
1) I have a page which is a content page to a Masterpage .
2) I have a ScriptManager on the Masterpage.
3) On the content page I have a TabContainer control.
4) On one of the tabs I have a form, part of which (a FileUpload control) I set to disabled if a Checkbox is ticked.
So I decided to put an UpdatePanel around this FileUpload control and set a trigger for the Checkbox (which has Autopostback="t rue"). When stepping through the project the OnCheckChanged where the FileUpload is enabled/disabled is called but the UpdatePanel is not updating i.e. The FileUpload remains disabled.
Below is my code:
Code:
<asp:UpdatePanel ID="upnlAgentLogo" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<tr>
<td >
<asp:CheckBox ID="chkAgent" runat="server"
AutoPostBack="True" OnCheckedChanged="chkAgent_CheckedChanged" />
</td>
</tr>
<tr>
<td >
<asp:FileUpload ID="fuAgentLogo" runat="server" />
</td>
</tr>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="chkAgent" />
</Triggers>
</asp:UpdatePanel>
Thanks
Luk
Comment