asp.net treeviewÇå³ýsession - .NET¼¼Êõ / ASP.NET
ÎÒÊÇasp.netÐÂÊÖ¡£ÔÚÀïÃæÌí¼ÓÁ˸ötreeview£¬Êý¾ÝÔ´ÊÇxml¡£ÎÒÏëÎÊÏ£¬ÏëÒªÔÚµãijһ¸ö½ÚµãµÄʱºò£¬Çå³ýsessionÔõôʵÏÖ¡£ÔÚÄĸöʼþÀïʵÏÖ¡£
C# code: protected void TreeView1_SelectedNodeChanged(object sender, EventArgs e) { //... }ÒýÓà C# code protected void TreeView1_SelectedNodeChanged(object sender, EventArgs e) { //... } ¶¥¡£¡£¡£ string selectednode = TreeView1.SelectedNode.Text.ToString().Trim(); if (selectednode == "Í˳öϵͳ") { Session.Clear(); Session.Abandon(); } ÕâÑù¶ÔÂð£¿ÔõôÎÒµãÍ˳öϵͳ½Úµãºó£¬ÔÙµãä¯ÀÀÆ÷ÉϵĺóÍË£¬»¹ÄܽøÈë֮ǰµÄÄǸö½çÃæµÄ°¡¡£ÒýÓà string selectednode = TreeView1.SelectedNode.Text.ToString().Trim(); if (selectednode == "Í˳öϵͳ") { Session.Clear(); Session.Abandon(); } ÕâÑù¶ÔÂð£¿ÔõôÎÒµãÍ˳öϵͳ½Úµãºó£¬ÔÙµãä¯ÀÀÆ÷ÉϵĺóÍË£¬»¹ÄܽøÈë֮ǰµÄÄǸö½çÃæµÄ°¡¡¡ ¼ì²éÏÂSESSION»¹ÓÐÂ𣿠Session.Clear(); Session.Abandon(); Çå³ý»º´æ ÁùÂ¥µÄ£¬ÎÒ°´ÕÕÄãµÄ¸ÄÁË£¬Ã»ÓÐÓð¡¡£¶¼¸ÃÁ˺ü¸ÌìÁË£¬»¹Ã»½â¾öÎÊÌâ¡£°Ù¶ÈÒ²°Ù¶È²
Ïà¹ØÎÊ´ð£º
C# code: SqlConnection conn = CsDB.sqlcon(); SqlDataAdapter da = new SqlDataAdapter("select fwCoding from bjmuma_fwCoding where OrderNumber='" + Order + & ......
¾ÍÊÇÒ»¸ö°´Å¥£¬µã»÷Ö®ºó´ò¿ª¶Ô»°¿ò£¬È»ºóѡȡͼƬ¡£¾ÍÕâÑùÉÏ´«¡£¡£ ÔõôʵÏÖ¡£ÔÚÍøÉÏËѵ½ÄÇô¶àµÄ´úÂ룬ȫÊǺܶàµÄÄÇÖÖ£¬²»ÖªµÀ£¬¿´²»ÏÂÈ¥¡£ ËùÒÔÔÚÕâÀïÏëÇë´ó¸ç´ó½ã°ï°ïæ¡£ ʹÓÃ×Ô´øµÄfileupload¿Ø¼þ¿ÉÒÔʵÏÖ ......
sqlserverµÄÊý¾Ý¿â£¬×Ö¶ÎÊÇimageÀàÐ͵ġ£Ôõôд´úÂ룬ÔÚÒ³ÃæÖеã»÷¡°ÏÂÔØ¡±¾ÍÄÜ´ò¿ªÄǸöÏÂÔØ¶Ô»°¿ò£¿ PS£ºOracleLob ÔÚsqlserverÀïÊÇʲô£¿ Response.Redirect("test.jpg") ÒýÓà Response.Redirect( ......
¸÷λºÃ£¬ÎÒ¸Õ°ÑÒ»¸öASPÍøÕ¾ÉèÖúÃÁË£¬Ò²ÄÜÕý³£·ÃÎÊ¡£µ«ÊÇÔÚÎÒ±¾»úÉϲ»ÄÜ´ò¿ªadmin\login.asp,ËùÒÔÎÞ·¨ÊµÏÖºǫ́¹ÜÀí¡££¨´íÎóÌáʾÎÞ·¨ÕÒµ½ÍøÒ³£¬´úÂë404£¬ÎҵIJÙ×÷ϵͳÊÇwin2000 server) µ«ÊÇÆæ¹ÖµÄÊÇÔÚ¾ÖÓòÍøµÄÆäËû» ......
<table border= "0 " cellspacing= "0 " cellpadding= "0 "> <BH_CHANNELS ID= "OWNER " CHILDTYPE= "aaa " ......