Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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Á¬½ÓaccessÊý¾Ý¿â½øÐÐÌí¼Ó¸üÐÂɾ³ý²éѯ²Ù×÷

Á¬½ÓaccessÊý¾Ý¿â´úÂ룬дÔÚÒ»¸öµ¥¶ÀµÄÀàÀï
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.OleDb;
namespace AppWebDLL
{
    public class ConnApp
    {
       ......

asp.net¹ØÓÚ@RegisterʹÓÃ

@ Register´´½¨±ê¼Çǰ׺ºÍ×Ô¶¨Òå¿Ø¼þÖ®¼äµÄ¹ØÁª£¬ÕâΪ¿ª·¢ÈËÔ±ÌṩÁËÒ»ÖÖÔÚ ASP.NET Ó¦ÓóÌÐòÎļþ£¨°üÀ¨ÍøÒ³¡¢Óû§¿Ø¼þºÍĸ°æÒ³£©ÖÐÒýÓÃ×Ô¶¨Òå¿Ø¼þµÄ¼òÃ÷·½·¨¡£
<%@ Register tagprefix="tagprefix"
   namespace="namespace"
   assembly="assembly" %>
<%@ Register tagprefix="tagpref ......

Flex Óë Asp.Net ͨ¹ý Remoting ·½Ê½½øÐÐͨѶ

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 ͨ ......

ASP.NET¿çÒ³Ãæ´«Öµ¼¼ÇÉ×ܽá

1.ʹÓÃQueryString±äÁ¿
QueryStringÊÇÒ»Öַdz£¼òµ¥µÄ´«Öµ·½Ê½£¬Ëû¿ÉÒÔ½«´«Ë͵ÄÖµÏÔʾÔÚä¯ÀÀÆ÷µÄµØÖ·À¸ÖС£Èç¹ûÊÇ´«µÝÒ»¸ö»ò¶à¸ö°²È«ÐÔÒªÇ󲻸߻òÊǽṹ¼òµ¥µÄÊýֵʱ£¬¿ÉÒÔʹÓÃÕâ¸ö·½·¨¡£µ«ÊǶÔÓÚ´«µÝÊý×é»ò¶ÔÏóµÄ»°£¬¾Í²»ÄÜÓÃÕâ¸ö·½·¨ÁË¡£ÏÂÃæÊÇÒ»¸öÀý×Ó£º
a.aspxµÄC#´úÂë
private void Button1_Click(object sender, Sy ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ