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

asp.net TextBoxÖ»¶Áʱ²»ÄÜͨ¹ýºǫ́¸³ÖµÈ¡Öµ½â¾ö°ì·¨


¸øÒ³ÃæµÄTextBoxÉèÖÃReadOnly="True"ʱ,ÔÚºǫ́´úÂëÖв»Äܸ³ÖµÈ¡Öµ,ϱ߼¸ÖÖ·½·¨¿ÉÒÔ±ÜÃâ:
1¡¢²»ÉèÖÃReadOnly,ÉèÖÃonfocus=this.blur()
C#´úÂë
<asp:TextBox ID="TextBox1" runat="server" onfocus=this.blur()></asp:TextBox>  
<asp:TextBox ID="TextBox1" runat="server" onfocus=this.blur()></asp:TextBox>
Îı¾¿ò²»±ä»ÒÉ«,µ«Ò²ÎÞ·¨ÊÖ¶¯ÐÞ¸ÄÄÚÈÝ,¿ÉÒÔÔÚºǫ́ͨ¹ýTextÊôÐÔÕý³£¸³ÖµÈ¡Öµ
2¡¢ÉèÖÃÁËReadOnlyÊôÐÔºó£¬Í¨¹ýRequestÀ´È¡Öµ£¬ÈçÏ£º
ǰ̨´úÂë:
C#´úÂë
<asp:TextBox ID="TextBox1" runat="server" ReadOnly="True" ></asp:TextBox>  
<asp:TextBox ID="TextBox1" runat="server" ReadOnly="True" ></asp:TextBox>
ºǫ́´úÂ룺
C#´úÂë
string Text = Request.Form["TextBox1"].Trim();  
string Text = Request.Form["TextBox1"].Trim();
3¡¢ÔÚPage_Load()ÕýÉèÖÃÎı¾¿òµÄÖ»¶ÁÊôÐÔ£¬ÄÜÕý³£¶ÁÈ¡£¬ÈçÏ£º
C#´úÂë
protected void Page_Load(object sender, EventArgs e)   
{   
    if (!Page.IsPostBack)   
    {   
        TextBox1.Attributes.Add("readonly","true");   
    }   
}  


Ïà¹ØÎĵµ£º

asp.netѹËõÎļþÀà

½ñÌìÑо¿ÁËÒ»ÏÂÔÚasp.netÏÂÓÃC#ÓïÑÔѹËõÎļþ£¬ºÍ½âѹÎļþ£¬ÔÚÍøÉϺÃÁ˺þòÅÕÒµ½Ô´´úÂ룬£¬Õæ²»ÈÝÒ×°¡£¡£¡
ÔÚ ASP.NET ÖÐÓÐÁ½¸öÀࣺDeflateStream ºÍ GZipStream ÓÃÓÚ´¦ÀíѹËõºÍ½âѹËõ£¬ÕâÁ½¸öÀà·Ö±ðʹÓõÄÊÇ DEFLATE ºÍ gzip ѹËõËã·¨£¬ÕâÁ½¸öËã·¨±»Ò»Ð©Ñ¹ËõÈí¼þÖ§³Ö£¬±ÈÈç WinRAR ¾ÍÖ§³Ö gzip¡£ÕâÁ½¸öÀàµÄÃû³Æ¿Õ¼ä¾ùΪ£ ......

asp.netÃæÊÔÌâ


1:a=10,b=15£¬ÔÚ²»ÓõÚÈý·½±äÁ¿µÄÇ°ÌáÏ£¬°Ña,bµÄÖµ»¥»»
2£ºÒÑÖªÊý×éint[] max={6,5,2,9,7,4,0};ÓÿìËÙÅÅÐòËã·¨°´½µÐò¶ÔÆä½øÐÐÅÅÁУ¬²¢·µ»ØÊý×é
3£ºÇë¼òÊöÃæÏò¶ÔÏóµÄ¶à̬µÄÌØÐÔ¼°ÒâÒ壡
4£ºsessionϲ»¶¶ªÖµÇÒÕ¼Äڴ棬Cookis²»°²È«£¬ÇëÎÊÓÃʲô°ì·¨´úÌæÕâÁ½ÖÖԭʼµÄ·½·¨
5£º¶ÔÊý¾ÝµÄ²¢·¢²ÉÓÃʲô°ì·¨½øÐд¦Àí½ÏºÃ¡£
6 ......

ASP.NET Cookie ¸ÅÊö

ASP.NET Cookie ¸ÅÊö
Cookie ÌṩÁËÒ»ÖÖÔÚ Web Ó¦ÓóÌÐòÖд洢Óû§Ìض¨ÐÅÏ¢µÄ·½·¨¡£ÀýÈ磬µ±Óû§·ÃÎÊÄúµÄÕ¾µãʱ£¬Äú¿ÉÒÔʹÓà Cookie ´æ´¢Óû§Ê×Ñ¡Ïî»òÆäËûÐÅÏ¢¡£µ±¸ÃÓû§ÔٴηÃÎÊÄúµÄÍøվʱ£¬Ó¦ÓóÌÐò±ã¿ÉÒÔ¼ìË÷ÒÔÇ°´æ´¢µÄÐÅÏ¢¡£
ʲôÊÇ Cookie£¿
Cookie ÊÇһС¶ÎÎı¾ÐÅÏ¢£¬°éËæ×ÅÓû§ÇëÇóºÍÒ³ÃæÔÚ Web ·þÎñÆ÷ºÍä¯ÀÀÆ÷Ö® ......

Ìá¸ßASP.NetÓ¦ÓóÌÐòÐÔÄܵÄÊ®´ó·½·¨

Ò»¡¢·µ»Ø¶à¸öÊý¾Ý¼¯    
       
¼ì²éÄãµÄ·ÃÎÊÊý¾Ý¿âµÄ´úÂ룬¿´ÊÇ·ñ´æÔÚ×ÅÒª·µ»Ø¶à´ÎµÄÇëÇó¡£Ã¿´ÎÍù·µ½µµÍÁËÄãµÄÓ¦ÓóÌÐòµÄÿÃëÄܹ»ÏìÓ¦ÇëÇóµÄ´ÎÊý¡£Í¨¹ýÔÚµ¥¸öÊý¾Ý¿âÇëÇóÖзµ»Ø¶à¸ö½á¹û
¼¯£¬¿ÉÒÔ¼õÉÙÓëÊý¾Ý¿âͨÐŵÄʱ¼ä£¬Ê¹ÄãµÄϵͳ¾ßÓÐÀ©Õ¹ÐÔ£¬Ò²¿ÉÒÔ¼õÉÙÊý¾Ý¿â·þÎñÆ÷ÏìÓ¦ÇëÇóµÄ¹¤×÷ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ