2008-04-10 如何在Asp.net Ajax Tookit中的TabControl的header放圖片? 8520 0 AJAX 摘要:如何在Asp.net Ajax Tookit中的TabControl的header放圖片? 剛好有人問到,實做方式如下: <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Tab.aspx.vb" Inherits="Tab" %> <%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI" TagPrefix="asp" %> <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Untitled Page</title> </head> <body onbeforeunload="RunOnBeforeUnload()" onbeforeunload="RunOnBeforeUnload()" onbeforeunload="RunOnBeforeUnload()" onbeforeunload="RunOnBeforeUnload()" onbeforeunload="RunOnBeforeUnload()" onbeforeunload="RunOnBeforeUnload()" onbeforeunload="RunOnBeforeUnload()" onbeforeunload="RunOnBeforeUnload()"> <form id="form1" runat="server"> <div> </div> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <cc1:TabContainer ID="TabContainer1" runat="server"> <cc1:TabPanel ID="TabPanel1" runat="server"> <HeaderTemplate> <img src="MyImage.jpg" temp_src="MyImage.jpg" /></HeaderTemplate> </cc1:TabPanel> <cc1:TabPanel ID="TabPanel2" runat="server" HeaderText="YYY"> <HeaderTemplate> <img src="MyImage.jpg" temp_src="MyImage.jpg" /></HeaderTemplate> </cc1:TabPanel> </cc1:TabContainer> </form> </body> </html> 如果您有微軟技術開發的問題,可以到MSDN Forum發問。 如果您有微軟IT管理的問題,可以到TechNet Forum發問喔。 回首頁