Asp.net tabcontrol
ÏÂÃæ½éÉÜʵÏÖ·½·¨£º
Ò»¡¢ÍÏÀÒ»¸öMenu¿Ø¼þ
Õâ¸ö¿Ø¼þÊǸºÔð¿Ø¼þ¸÷¸öÑ¡ÏµÄ£¬Ò²¾ÍÊÇ×îÖÕ³ÊÏÖÔÚÓû§ÃæÇ°µÄ½çÃ棬²¢ÇÒÎÒÃÇÖ¸¶¨Ã¿¸öÑ¡ÏµÄͼƬ¡£
´úÂ룺
<asp:Menu ID="Menu1" runat="server" onmenuitemclick="Menu1_MenuItemClick"
Orientation="Horizontal" StaticEnableDefaultPopOutImage="False">
<Items>
<asp:MenuItem Text="1" Value="0" ImageUrl="~/bb.gif"></asp:MenuItem>
<asp:MenuItem Text="2" Value="1" ImageUrl="~/bb.gif"></asp:MenuItem>
<asp:MenuItem Text="3" Value="2" ImageUrl="~/bb.gif"></asp:MenuItem>
</Items>
</asp:Menu>
¶þ¡¢ÍÏÀÒ»¸öMultiview¿Ø¼þ
ÔÚMultiview¿Ø¼þÖУ¬·Ö³É¶à¸öviewÑ¡Ï£¬ÕâÀïÎÒÉèÖÃ3¸öÑ¡Ï
´úÂ룺
<asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">
<asp:View ID="View1" runat="server">
<table>
<tr>
<td>tab view 1</td>
</tr>
</table>
</asp:View>
&n
Ïà¹ØÎĵµ£º
ÎÒÊÔ×ÅȥʹÓÃasp.net mvcÄ£°åÈ¥´´½¨Ò»¸öblog·¢²¼ÏµÍ³¡£µ±È»£¬ÍøÉÏÓкܶàopen sourceµÄÄã¿ÉÒÔʹÓã¬ÌرðÊǺܶàphpдµÄÄ£°å¡£
ÕâÀïÖ»ÊÇÈ¥ÊÔ×ÅѧϰʹÓÃasp.net mvcÄ£°åÈ¥´´½¨Ò»¸öblog·¢²¼ÏµÍ³£¬ÎÒ×Ô¼ºÓᣴ󲿷ֵÄblog¶¼»áÓÐÈçÏÂһЩ²¿·Ö×é³É£º
ÕâÀﻹ»áʹÓÃCommon Library .net Õâ¸öopen sourceµÄproject¡£Äã¿ÉÒÔµ½ ......
ÔÚweb¿ª·¢ÖÐ,¾³£ÒªÓõ½¿Ø¼þµÄOnClientClickÓëOnClickʼþ.
Èç¹ûʹÓò»µ±,¾³£»áÓöµ½Ò»Ð©ÒâÁÏÖ®ÍâµÄÊÂÇé·¢Éú,ÈÃÈËÃþ²»×ÅÍ·ÄÔ.ÏÂÃæ¾Í½«ÎÒµÄһЩСС×ܽáµÀÀ´:
Ê×ÏÈÎÒÃÇÒªÁ˽âÕâÁ½¸öʼþ:
OnClientClickÊÇ¿Í»§¶Ëʼþ·½·¨.Ò»°ã²ÉÓÃJavaScriptÀ´½øÐд¦Àí.Ò²¾ÍÊÇÖ±½ÓÔÚIE¶ËÔËÐÐ.Ò»µã»÷¾ÍÔËÐÐ.
OnClickʼþÊÇ·þÎñÆ÷¶Ëʼþ´¦Àí ......
ASP.NET(C#)·µ»ØÉÏÒ»Ò³(ºóÍË)´úÂë
2008-08-10 10:32
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
ViewState["BackUrl"] = Request.UrlReferrer.ToString();
}
}
/// <s ......
ûÓÐ×ÐϸÑо¿¹ýViewState£¬×î½ü³öÏÖµÄÎÊÌâÈÃÈËÍ·Í´²»ÒÑ¡£
ViewState»áÔÚijЩÌض¨Çé¿öÏÂÏûʧ£¬ÇÒºÜÄѲ¶×½µ½¡£²éÁËһЩ¼¼ÊõÎÄÕ£¬¶¼ÊÇ˵ViewStateµÄ»úÖÆÊǽ«ÐÅÏ¢´æÔÚÒ³ÃæµÄhidden inputÀïÃ棬Ëƺõ²»¿ÉÄÜ´æÔÚÕâЩÎÊÌ⣬¸ø³öµÄÀíÓÉÎÞ·ÇÊÇÔÚij¸öµØ·½±»Ä³¸ö²»Ð¡ÐĵijÌÐòÔ±¸ø½ûµô»òÇå³ýµôÁ ......