English 中文(简体)
B. 安装在用户控制下的最新小组
原标题:Update panel placed in user control causes full postback

I have a user control. Which contains update panel. I want to update only part of the page for SelectIndexChanged event of radiobutton list, but my update panel causes full post back. I am using vs-2010.

The hierarchy is as below. Master page->.aspx page->user control->user control->update panel

我试图这样做,把用户控制直接放在下页。 在本案中,它进行罚款。

我的超额标识代码如下。

<tr>
    <td colspan="2">
        <asp:UpdatePanel ID="upMedicalStatus" runat="server">
        <ContentTemplate>
             <table class="TABLE100">
                <tr>
                  <td> 1.</td>
                  <td>Diabetes Mellitus</td>
                  <td align="right">
                      <asp:RadioButtonList ID="rdbDiabetes" runat="server"                                               RepeatDirection="Horizontal"                                       onselectedindexchanged="rdbDiabetes_SelectedIndexChanged" 
                                        AutoPostBack="True">
                         <asp:ListItem Value="True">Yes</asp:ListItem>
                         <asp:ListItem Value="False">No</asp:ListItem>
                      </asp:RadioButtonList>
                  </td>
                </tr>
             </table>
          </ContentTemplate>
           <Triggers>
                <asp:AsyncPostBackTrigger ControlID="rdbDiabetes" EventName="SelectedIndexChanged" />
                        <%--<asp:PostBackTrigger ControlID="rdbDiabetes" />--%>
           </Triggers>
       </asp:UpdatePanel>
    </td>
  </tr>
问题回答

暂无回答




相关问题
WPF control in windows forms?

I would like to create some custom UI controls that work with both WPF and Windows Forms. Is this possible? If so, can I create these controls in WPF or do I need ot use a Windows Forms control? ...

SharePoint user control deployment issue

I am using SharePoint 2007 Enterprise with Windows Server 2008. I am using VSTS 2008 + C# + .Net 3.5. I am new to SharePoint user control development and deployment. I am learning from, http://www....

How do I embed a user control in a DLL?

How can I embed a user control in a DLL? Ideally, I would still be able to define the control s markup in an ascx file, but if I understand correctly you cannot embed template files into DLLs.

Substitute User Controls on Failure

Recently, I had a user control I was developing throw an exception. I know what caused the exception, but this issue got me thinking. If I have a user control throw an exception for whatever reason ...

热门标签