好吧現在我的問題是,雖然我使用更新面板,每當我更新更新面板內的任何內容,整個網頁將刷新。整個網頁仍然刷新,儘管使用更新面板
下面是代碼
<div id="firstbar">
<asp:UpdatePanel ID="UpdatePanel1" runat="server" >
<ContentTemplate>
<div style="width:15%;float:left;">
<asp:Image ID="Image1" runat="server" ImageUrl="~/Img/Untitled1.png" CssClass="imagez" />
</div>
</ContentTemplate>
<div style="width:85%;float:left;height:100%;padding-top:2%;">
<asp:Label ID="Label2" runat="server" Text="CPU" CssClass="auto-style7" Font-Names="sans-serif"></asp:Label>
<br />
<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" CssClass="bla" DataSourceID="SqlDataSource1" DataTextField="Name" DataValueField="Name" Font-Names="sans-serif" AppendDataBoundItems="true" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged" >
<asp:ListItem Selected="True">Pick a CPU</asp:ListItem>
</asp:DropDownList>
<asp:UpdatePanel ID="UpdatePanel17" runat="server">
<ContentTemplate>
<strong>
<asp:Label ID="Label3" runat="server" Text="$" CssClass="auto-style8" Font-Names="sans-serif"></asp:Label>
<asp:Label ID="Label4" runat="server" Text="0.00" CssClass="auto-style8" Font-Names="sans-serif"></asp:Label>
</strong>
</div>
</ContentTemplate>
</asp:UpdatePanel>
</div>
的可能的複製[?什麼是一個NullReferenceException,以及如何解決呢(http://stackoverflow.com/questions/4660142/what-is-a-nullreferenceexception - 我怎麼辦 - 我 - 修復它) – VDWWD
http://stackoverflow.com/questions/5178203/sys-webforms-pagerequestmanagerservererrorexception-status-code-500 – jignesh
嘿jignesh,我跟着那個鏈接,我有一個加法錯誤未捕獲ReferenceError:Sys未定義 – Nicholas