Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ASP.net ×ÔÖÆTableTreeʵÏÖ

using System;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
namespace UserControl.UI
{
 /// <summary>
 /// TreesTable µÄժҪ˵Ã÷¡£
 /// </summary>
 public class TreesTable
 {
  public interface iTrees
  {
   void AddNode(Trees node);
   Control NodeItem{get;}
   Control Title{get;set;}
  }
      
  public class Trees:Control,iTrees
  {
   private Control m_TreeNodeCollect;
   private Control m_TitleControl;
   private string m_TextTitle;
   private HtmlTable m_HtmlTabe;
   private string m_script;
   private const string SCRIPT="<script language='javascript'>{0}</script>";
   
   public Trees()
   {
    m_TreeNodeCollect = new Control();
    m_HtmlTabe = new HtmlTable();
    //Java script
    m_script = string.Format(SCRIPT,
     "function ShowObject(showObjName){var showObj1=showObjName; if(showObj1.style.display=='none'){showObj1.style.display='block';}else{showObj1.style.display='none';}}");
   }
   
   public Trees(string title)
   {
    m_TreeNodeCollect = new Control();
    m_HtmlTabe = new HtmlTable();
    //Java script
    m_script = string.Format(SCRIPT,
     "function ShowObject(showObjName){var showObj1=showObjName; if(showObj1.style.display=='none'){showObj1.style.display='block';}else{showObj1.style.display='none';}}");
    TextTitle = title;
   }
   


Ïà¹ØÎĵµ£º

ASP.NETµÄformsÉí·ÝÑéÖ¤

Asp.netµÄÉí·ÝÑéÖ¤ÓÐÓÐÈýÖÖ£¬·Ö±ðÊÇ"Windows | Forms | Passport"£¬ÆäÖÐÓÖÒÔFormsÑéÖ¤ÓõÄ×î¶à£¬Ò²×îÁé»î¡£
Forms ÑéÖ¤·½Ê½¶Ô»ùÓÚÓû§µÄÑéÖ¤ÊÚȨÌṩÁ˺ܺõÄÖ§³Ö£¬¿ÉÒÔͨ¹ýÒ»¸öµÇÂ¼Ò³ÃæÑéÖ¤Óû§µÄÉí·Ý£¬½«´ËÓû§µÄÉí·Ý·¢»Øµ½¿Í»§¶ËµÄCookie£¬Ö®ºó´ËÓû§ÔÙ·ÃÎÊÕâ¸öwebÓ¦ÓþͻáÁ¬Í¬Õâ¸öÉí·ÝCookieÒ»Æð·¢Ë͵½·þÎñ¶ ......

ASP.NETÒ³Ãæ´«Êý¾ÝµÄ¸÷ÖÖ·½·¨ºÍ·ÖÎö

WebÒ³ÃæÊÇÎÞ״̬µÄ£¬ ·þÎñÆ÷¶Ôÿһ´ÎÇëÇó¶¼ÈÏΪÀ´×Ô²»Í¬Óû§£¬Òò´Ë£¬±äÁ¿µÄ״̬ÔÚÁ¬Ðø¶ÔÍ¬Ò»Ò³ÃæµÄ¶à´ÎÇëÇóÖ®¼ä»òÔÚÒ³ÃæÌø×ªÊ±²»»á±»±£Áô¡£ÔÚÓÃASP.NET Éè¼Æ¿ª·¢Ò»¸öWebϵͳʱ£¬ Óöµ½Ò»¸öÖØÒªµÄÎÊÌâÊÇÈçºÎ±£Ö¤Êý¾ÝÔÚÒ³Ãæ¼ä½øÐÐÕýÈ·¡¢°²È«ºÍ¸ßЧµØ´«ËÍ£¬Asp.net ÌṩÁË״̬¹ÜÀíµÈ¶àÖÖ¼¼ÊõÀ´½â¾ö±£´æºÍ´« ......

Asp.netÒ³ÃæÖ®¼ä´«µÝ²ÎÊýµÄ¼¸ÖÖ·½·¨

Asp.netÒ³ÃæÖ®¼ä´«µÝ²ÎÊýµÄ¼¸ÖÖ·½·¨
µÚÒ»ÖÖ·½·¨£ºITPUB¸öÈ˿ռäR:s`4eP
ͨ¹ýURLÁ´½ÓµØÖ·´«µÝRequest.QueryStringITPUB¸öÈ˿ռä/G3Z;zZs'| `
send.aspx:ITPUB¸öÈ˿ռä@ V.X@k7P ^L'B
   protected void Button1_Click(object sender, EventArgs e)
Zv!cSZ]6hB ?0     {
 ......

ASP.NET¶ÁÈ¡ASPÉèÖõÄCookie

    ÕâÀàÎÊÌâͨ³£ÔÚÕûºÏ»ò¶þ´Î¿ª·¢ASPÍøÕ¾Ê±Óöµ½¡£°´³£ÀíÀ´Ëµ£¬ä¯ÀÀÆ÷µÄCookie´æ·ÅÔÚ¿Í»§¶Ë£¬Êµ¼ÊÉÏÓë·þÎñ¶ËʹÓÃʲôÓïÑÔÎ޹أ¬µ«ÎÒÃÇÔÚʵ¼Ê²Ù×÷¹ý³ÌÖУ¬×Ü»áÓöµ½Ò»Ð©ÒâÏë²»µ½µÄÎÊÌâ¡£
    1. µ±ASPдµÄCookieµÄKeyÖдøÓÐÏ»®Ïߣ¬ÀýÈçÎÒÃÇÔÚASPÖÐÕâÑùÉèÖÃCookie:
     ......

ASP.NetµÄUpdatePanel¿Ø¼þµÄ¼òµ¥Ê¹ÓÃ

¼¸ÖÖUpdatePanel¿Ø¼þµÄ×î¼òµ¥µÄÓ÷¨.
1.ÔÚUpdatePanel¿Ø¼þÀíµÄ×ӿؼþÖ±½Ó¾Ö²¿Ë¢ÐÂÄÚÈÝ.
Ó÷¨ÈçÏÂ
 Ê×ÏȱØÐëÏÈÍÐÒ»¸öScriptManager¿Ø¼þ·ÅÔÚÒ³ÃæÄÚ,
 ÔÚÍÐÒ»¸öupdatePanel¿Ø¼þ
ÔÚContentTemplateÀïÃæ·ÅҪˢеÄÄÚÈݺͰ´Å¥,
½«updatePanelµÄUpdateMode="Conditional",
ÕâÑù°´Å¥Ê¼þ½«ÔÚ¾Ö²¿Ë¢Ð¿ؼþÀïÃæµÄÄÚÈ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ