2番目のタブが有効になっている2つのタブを持つAjaxtoolkit TabcontainerがFalseです。2 番目のタブに Combobox AjaxToolikit コントロールを配置しました。しかし、IEブラウザだけでサーバーにポストバックが発生すると、次のエラーが発生します。しかし、Firefox では問題なく、すべてが正常に動作します。どうしたの?
これは私のコードです:
<ul>
<li>
<asp:ImageButton ID="BtnNew" CausesValidation="false" runat="server" ImageUrl="~/CssImages/new_document.png"
ToolTip="New" Width="20px" OnClick="BtnNew_Click" /></li>
</ul>
<cc1:TabContainer ID="TabContainer1" runat="server">
<cc1:TabPanel runat="server" ID="Tab1" HeaderText="xx">
<ContentTemplate>
xx
</ContentTemplate>
</cc1:TabPanel>
<cc1:TabPanel runat="server" ID="TabPanel1" HeaderText="yy" Enabled="false">
<ContentTemplate>
dsds <cc1:ComboBox ID="ComboBox1" runat="server">
<asp:ListItem>loblob</asp:ListItem>
</cc1:ComboBox>
</ContentTemplate>
</cc1:TabPanel>
</cc1:TabContainer>
エラー:
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
AjaxControlToolkit.ComboBox.LoadPostData(String postDataKey, NameValueCollection postCollection) +168
AjaxControlToolkit.ComboBox.System.Web.UI.IPostBackDataHandler.LoadPostData(String postDataKey, NameValueCollection postCollection) +57
System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) +690
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1743