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
Ïà¹ØÎĵµ£º
1.¶ÔÏó³õʼ»¯£¨OnInit·½·¨£©
Ò³ÃæÖеĿؼþ(°üÀ¨Ò³Ãæ±¾Éí)¶¼ÊÇÔÚËüÃÇ×î³õµÄFORMÖб»Ê״γõʼ»¯µÄ¡£Í¨¹ýÔÚASPXÒ³ÃæµÄºǫ́´úÂëÎļþµÄ¹¹ÔìÆ÷ÖÐÉùÃ÷ÄãµÄ¶ÔÏó£¬Ò³Ã潫֪µÀ¶ÔÏóµÄÀàÐÍ£¬²¢ÖªµÀÐèÒª´´½¨¶àÉÙ¸öÕâÑùµÄ¶ÔÏó¡£Ò»µ©ÄãÔÚ¹¹ÔìÆ÷ÖÐÉùÃ÷ÁËÄãµÄ¿Ø¼þ£¬Äã¾Í¿ÉÒÔÔÚËüµÄÈκÎ×ÓÀ࣬·½·¨£¬Ê¼þ»òÕßÊôÐÔÖзÃÎʵ½Ë ......
Flex
Óë Asp.Net ͨ¹ý Remoting ·½Ê½½øÐÐͨѶ
Flex Óë Asp.Net ͨ¹ý Remoting ·½Ê½½øÐÐͨѶ (Ò»)http://hi.baidu.com/tsengyuen/blog/item/644e98a3353f7287471064ef.html
Flex Óë Asp.Net ͨ¹ý Remoting ·½Ê½½øÐÐͨѶ (¶þ)http://hi.baidu.com/tsengyuen/blog/item/af02730d58d6d7266059f3e8.html
Flex Óë Asp.Net ͨ ......
ÒÔǰд³ÌÐò´ÓÀ´¶¼Ã»Óùý»º´æ(ˮƽ̫²Ë)£¬ºÃÔÚÒÔǰ×öµÄÍøÕ¾·ÃÎÊÁ¿¶¼·Ç³£µÄС£¬ËùÒÔÐÔÄÜÎÊÌâÒ²²»Í»³ö£¬µ«ÊÇÈç¹û×öÒ»¸öÕý¹æµÄÏîÄ¿£¬²»ÂÛ´óС£¬»º´æ¼¼ÊõÊDZØÐëҪʹÓõ½µÄ¡£½ñÌìѧϰÁËÈýÖÖ³£ÓõĻº´æ¼¼Êõ£¬·Ç³£µÄ¼òµ¥£¬ÏàÐÅ´ó¼ÒÒ»¶¨ÄÜ¿´Ã÷°×¡£
¡¡¡¡ÏÈ˵ÏÂΪʲôҪÓûº´æ£¬ÔÚÕý³£Çé¿öÏ£¬µ±Ò»¸ö ......
ÔÚÍøÉÏÕÒµÄ
http://support.microsoft.com/kb/894435/en-us
http://www.atalasoft.com/kb/article.aspx?id=10181
Ò²ÐíÒÔºó»áÓõÃ×Å¡£
ÔÚweb.configÖмÓÈëÒÔÏÂÅäÖãº
C#
<system.codedom>
<compilers>
<compiler
language="c#;cs;csharp" extension=".cs"
compilerOptions="/platform ......
1.°²×°ºó
°²×°ÍêMVCºó,VSµÄWEBÏîÄ¿Àï»á³öÏÖÁ½¸öеÄÄ£°æ:
a. ASP.NET MVC 2 WEB Application ʹÓÃÕâ¸öÄ£°å»á¶àÉú³ÉÒ»¸öNUNIT²âÊÔÏîÄ ......