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

ASP.NET³£ÓÃJS½Å±¾ÕûÀí

Asp.netÉè¼ÆÊ±¾­³£ÒªÔÚ.aspx.cs´úÂëÖÐдһЩ½Å±¾,ÿ´Î¶¼ÖØÐÂд±È½ÏÂé·³,ËùÒ԰Ѿ­³£ÓõÄÕûÀíÁËÒ»ÏÂ,д³ÉÒ»¸ö¹«¹²Àà,ÒÔ±ãÒÔºóµ÷ÓÃ.
 
using System.Text;
using System.Web;
using System.Web.UI; namespace Lmsoft.Net.Web
{
    /**//// <summary>
    /// ÎļþÃû: Js.cs
    /// ¹¦ÄÜÃèÊö: .NET³ÌÐòÖг£ÓõÄJavascipt½Å±¾
    /// </summary>
    public class Js
    {
        /**//// <summary>
        /// ÔÚ¿Í»§¶Ë×¢²áJavascript½Å±¾,ÒÔ±ãµ÷ÓÃ
        /// </summary>
        /// <param name="name">½Å±¾¿é±êʶ¡£</param>
        /// <param name="content">½Å±¾´úÂë</param>
        public static void RegJs(string name, string content)
        {             string js = content;
            if (js.IndexOf("<script") < 0)
            {
                js = "<script language='JavaScript'>" + js + "</script>";
            }
            Page page = (Page)HttpContext.Current.Handler;
            page.ClientScript.RegisterClientScriptBlock(page.GetType(), name, js);
        }
        /**//// <summary>
        /// ÔÚ¿Í»§¶ËÖ´ÐÐÒ»¶Î½Å±¾
      &


Ïà¹ØÎĵµ£º

dz̸ASP.net°²È«±à³Ì

ÔÚWeb±à³Ì¹ý³ÌÖУ¬´æÔÚןܶలȫÒþ»¼¡£±ÈÈçÔÚÒÔǰµÄASP°æ±¾ÖУ¬CookieΪ·ÃÎÊÕߺͱà³ÌÕß¶¼ÌṩÁË·½±ã£¬²¢Ã»ÓÐÌṩ¼ÓÃܵŦÄÜ¡£´ò¿ªIEä¯ÀÀÆ÷£¬Ñ¡Ôñ“¹¤¾ß”²Ëµ¥ÀïµÄ“InternetÑ¡Ï¬È»ºóÔÚµ¯³öµÄ¶Ô»°¿òÀïµ¥»÷“ÉèÖÔ°´Å¥£¬Ñ¡Ôñ“²é¿´Îļþ”°´Å¥£¬ÔÚµ¯³öµÄ´°¿ÚÖУ¬¾Í»áÏÔʾӲÅÌÀï ......

asp.net ÈçºÎʵÏÖÓÊÏäÑéÖ¤

Ê×ÏÈÊý¾Ý¿â±íµÄÉè¼Æµ±ÖÐ
×¢²áÓû§±íÓ¦¸Ã°üº¬Ò»¸öÊÇ·ñ¼¤»îµÄ×ֶΣ¬Í¨¹ý´Ë×Ö¶ÎÀ´ÅжÏÊÇ·ñ¼¤»î¡£ºÍÒ»¸ö¼¤»îkeyµÄ×ֶΣ¬´Ë×Ö¶ÎÓÃÓÚ·ÅÖü¤»îÂë
³ÌÐò·½Ãæ
ÔÚÓû§×¢²áµÄʱºòËæ»úÉú³ÉÒ»¸ö¼¤»îÂë(ÇëÈ·±£¼¤»îÂëΨһ)£¬°ÑÓû§ÐÅÏ¢¼°¼¤»îÂë²åÈëµ½Êý¾Ý±íÖС£
ͨ¹ý·¢ÓʼþµÄ·½Ê½Ïò×¢²áÓû§ÌṩµÄÓÊÏä·¢Ò»·â°üº¬¼¤»îÁ´½ÓºÍ¸Õ¸ÕÉú³ÉµÄ¼¤» ......

´ÓASP.NETÓ¦ÓóÌÐòÉú´æÖÜÆÚ̸Æð(2)

  ÄÇôͨ¹ýÒÔÉϵÄ˵Ã÷£¬ÎÊÌâ¶þ£ºÎÒÃÇÔõô֪µÀIISºÍASP.NET ISAPIµ½µ×ÊÇÔõÑù¹¤×÷µÄ£¿
ASP.NET Process ModelÖ®Ò»£ºIIS ºÍ ASP.NET ISAPI
ǰ¼¸ÌìÓÐÒ»¸öÅóÓÑÔÚMSNÉÏÎÊÎÒ“ASP.NET ´Ó×î³õµÄ½ÓÊÕµ½Http requestµ½×îÖÕÉú³ÉResponseµÄÕû¸öÁ÷³Ìµ½µ×ÊÇÔõÑùµÄ£¿”ÎÒ¾õµÃÕâ¸öÎÊÌâÉæ¼°µ½IISºÍASP.NETASP.NET Runt ......

ASP.NET¿ì½Ý¼ü´óÈ«

VS2008 ¿ì½Ý¼ü´óÈ«[תÌû]
Ctrl+m+Crtr+oÕÛµþËùÓдó¸Ù
Ctrl+M+Crtr+P: Í£Ö¹´ó¸ÙÏÔʾ
Ctrl+K+Crtr+C: ×¢ÊÍÑ¡¶¨ÄÚÈÝ
Ctrl+K+Crtr+U: È¡ÏûÑ¡¶¨×¢ÊÍÄÚÈÝ
Ctrl+J : Áгö³ÉÔ± ÖÇÄܸÐÖª
Shift+Alt+Enter: Çл»È«ÆÁ±à¼­
Ctrl+B,T / Ctrl+K,K: Çл»ÊéÇ©¿ª¹Ø
Ctrl+B,N / Ctrl+K,N: ÒÆ¶¯µ½ÏÂÒ»ÊéÇ©
Ctrl+B,P: ÒÆ¶¯µ½ÉÏÒ»ÊéÇ©
......

ASP.NET ASP.NET ·þÎñÆ÷¿Ø¼þµÄÌØÀýÑéÖ¤½á¹û


      ÑéÖ¤¿ÉÒÔÈ·±£Óû§ÊäÈë·ûºÏÄúÖ¸¶¨µÄÌõ¼þ¡£ÔÚ´ó¶àÊýÇé¿öÏ£¬ÕâÒ»²Ù×÷±È½Ï¼òµ¥¡£µ«ÓÐʱ¶ÔÊäÈë½øÐÐÑéÖ¤»áÒýÈëÌØÊâµÄÌõ¼þ¡£Á˽âÕâЩÌõ¼þÊÇʲô¡¢ÑéÖ¤ÈçºÎÖ´ÐÐÒÔ¼°ÓÐÄÄЩ¿ÉÄܵÄÑéÖ¤½á¹ûÊǷdz£ÖØÒªµÄ¡£
 
Ò»¡¢Óë¿Õ°××ֶεĶԱÈ
Èç¹û×Ö¶ÎΪ¿Õ°×£¬Ôò³ý RequiredFieldValidator ¿Ø¼þÖ®ÍâµÄ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ