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

ASP.NETÖ´Ðд洢¹ý³Ì£¬²¢»ñÈ¡´æ´¢¹ý³ÌµÄ·µ»ØÖµ


ASP.NETÖ´Ðд洢¹ý³Ì£¬²¢»ñÈ¡´æ´¢¹ý³ÌµÄ·µ»ØÖµ

    Ò»¸ö¼òµ¥Àý×ÓÈçÏ£º
      1¡¢´´½¨´æ´¢¹ý³Ì£¨ÓÃÓÚÓû§Éí·ÝÑéÖ¤£©£º
      Create Procedure CheckUser
    (
     @userid char(20),
     @userpsw char(20)
     )
    as
     if exists(select * from tb_UserInfo where rtrim(UserID)=@userid and rtrim(UserPsw)=@userpsw)
      return 1
     else
      return 0
     2¡¢Asp.netÖ´ÐдúÂ룺
        //Á¬½ÓÊý¾Ý¿â
        string myStr = ConfigurationManager.AppSettings["connectionstring"].ToString();
        SqlConnection myConn = new SqlConnection(myStr);
        myConn.Open();
        //´´½¨SqlCommand¶ÔÏó
        SqlCommand cmd = new SqlCommand("CheckUser
",myConn);
        cmd.CommandType = CommandType.StoredProcedure;
       
        //Ìí¼Ó²ÎÊý
        SqlParameter Userid = cmd.Parameters.Add("@Userid", SqlDbType.Char);
        SqlParameter Userpsw= cmd.Parameters.Add("@Userpsw", SqlDbType.Char);
        SqlParameter returnvalue = cmd.Parameters.Add("@returnvalue", SqlDbType.Int);
        
        //Ö¸¶¨²ÎÊýÊÇÖ»¿ÉÊäÈë(Input)¡¢Êä³ö(Output)»¹ÊÇ·µ»ØÖµ(ReturnValue)
        Userid.Direction = Param


Ïà¹ØÎĵµ£º

ASP.NETÒ³ÃæÖ´ÐÐ˳Ðò

1.¶ÔÏó³õʼ»¯£¨OnInit·½·¨£©
    Ò³ÃæÖеĿؼþ(°üÀ¨Ò³Ãæ±¾Éí)¶¼ÊÇÔÚËüÃÇ×î³õµÄFORMÖб»Ê״γõʼ»¯µÄ¡£Í¨¹ýÔÚASPXÒ³ÃæµÄºǫ́´úÂëÎļþµÄ¹¹ÔìÆ÷ÖÐÉùÃ÷ÄãµÄ¶ÔÏó£¬Ò³Ã潫֪µÀ¶ÔÏóµÄÀàÐÍ£¬²¢ÖªµÀÐèÒª´´½¨¶àÉÙ¸öÕâÑùµÄ¶ÔÏó¡£Ò»µ©ÄãÔÚ¹¹ÔìÆ÷ÖÐÉùÃ÷ÁËÄãµÄ¿Ø¼þ£¬Äã¾Í¿ÉÒÔÔÚËüµÄÈκÎ×ÓÀ࣬·½·¨£¬Ê¼þ»òÕßÊôÐÔÖзÃÎʵ½Ë ......

ASP.NET Cookie

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

Asp.netÖÐʵÏÖͬһÓû§Ãû²»ÄÜͬʱµÇ½(µ¥µãµÇ½)

Web ÏîÄ¿Öо­³£Óöµ½µÄÎÊÌâ¾ÍÊÇͬһÓû§Ãû¶à´ÎµÇ½µÄÎÊÌ⣬ÏàÓ¦µÄ½â¾ö°ì·¨Ò²ºÜ¶à£¬×ܽáÆðÀ´²»ÍâºõÕ⼸ÖÖ½â¾ö°ì·¨£º½«µÇ½ºóµÄÓû§Ãû·Åµ½Êý¾Ý¿â±íÖУ»µÇ½ºóµÄÓû§Ãû·Åµ½SessionÖУ»µÇ½ºóµÄÓû§Ãû·Åµ½ApplicationÖУ»µÇ½ºóµÄÓû§Ãû·Åµ½CacheÖС£Ò»°ãµÄÕ⼸ÖÖ·½·¨¶¼ÊǵǽÁËÖ®ºó£¬Èç¹ûûÓÐÕý³£Í˳ö£¬µÚ¶þ´ÎµÇ½½«²»±»ÔÊÐí¡£Õ ......

ASP.NET IISʹÓôíÎó ÎÞ·¨ÏÔʾ XML Ò³

windows xpÏÂIIS°²×°ºó¡£
¿ªÊ¼ÏÔʾµÄ´íÎóΪ
 ÎÞ·¨ÏÔʾ XML Ò³¡£
        ʹÓà Ñùʽ±íÎÞ·¨²é¿´ XML ÊäÈë¡£Çë¸üÕý´íÎóÈ»ºóµ¥»÷ ˢа´Å¥£¬»òÒÔºóÖØÊÔ¡£
        ------------------------------------------------------------------------- ......

ASP.NETÖнøÐÐÏûÏ¢´¦Àí(MSMQ) Ò»

ASP.NETÖнøÐÐÏûÏ¢´¦Àí(MSMQ) Ò»
      MSMQÊÇ΢ÈíÏûÏ¢¶ÓÁеÄÓ¢ÎÄËõд¡£ÄÇôʲôÊÇÏûÏ¢¶ÓÁУ¿ÕâЩ½éÉÜÍøÉÏÒ»´óƬÕâÀï¾Í²»¶à˵ÁË¡£±¾ÎĶÔÓÚ´óϺ¼¶µÄÈËÎïÀ´ËµÕâÖ»ÊÇÐ¡ÍæÒâ¶øÒÑ£¬¶ÔÓÚ³õѧÕßÀ´ËµÕâÎÄÕ»¹ÊÇÓÐÒ»¶¨µÄ°ïÖú£¬Ï£Íû·¹ýµÄ´óϺÃDZðЦ»°ÎÒ°àÃÅŪ¸«¡£
Ò»¡¢MSMQ½éÉܺͰ²×°ÏûÏ¢¶ÓÁÐ
 &nb ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ