类型“system.web.ui.updatepanel” 不具有名为“***”的公共属性,
其实原因很简单。就是少了一个<ContentTemplate></ContentTemplate>

<asp:UpdatePanel ID="UpdatePanel1" runat="server">


<asp:DropDownList ID="ddlUsed" runat="server">
                    <asp:ListItem Text="百度" Value="-1"></asp:ListItem>
                    <asp:ListItem Text="谷歌" Value="0"></asp:ListItem>
                    <asp:ListItem Text="新浪" Value="1"></asp:ListItem>
                </asp:DropDownList>

</asp:UpdatePanel>


正确的如下:

<asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
              asp:DropDownList ID="ddlUsed" runat="server">
                    <asp:ListItem Text="百度" Value="-1"></asp:ListItem>
                    <asp:ListItem Text="谷歌" Value="0"></asp:ListItem>
                    <asp:ListItem Text="新浪" Value="1"></asp:ListItem>
                </asp:DropDownList>      

           </ContentTemplate>    

  </asp:UpdatePanel>

相关文章:

  • 2021-10-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-16
  • 2021-08-10
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-15
  • 2022-12-23
  • 2021-11-01
  • 2021-08-28
相关资源
相似解决方案