VS : 2010 SP1
AJAX : AjaxControlToolkit.Binary.NET4
下載網址
http://ajaxcontroltoolkit.codeplex.com/releases/view/116091
依照以往的方式,拉了ScriptManager後,再拉TabContainer
後來才發現,要拉ToolkitScriptManager才可以,但IE8開啟會出現錯誤,chrome正常,有空再抓問題,先記錄一下
友人測試VS2012也是拉ToolkitScriptManager
看書的範例是拉ScriptManager就可以了,猜可能是AjaxControlToolkit版本問題
====================CODE=================================
<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
</asp:ToolkitScriptManager>
<asp:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="1"
Height="100px" Width="100px">
<asp:TabPanel runat="server" HeaderText="TabPanel1" ID="TabPanel1"><HeaderTemplate>Tab1</HeaderTemplate>
<ContentTemplate>內容1</ContentTemplate></asp:TabPanel>
<asp:TabPanel ID="TabPanel2" runat="server" HeaderText="TabPanel2"><HeaderTemplate>Tab2</HeaderTemplate>
<ContentTemplate>內容2</ContentTemplate> </asp:TabPanel>
</asp:TabContainer>
沒有留言:
張貼留言