熱點推薦:
您现在的位置: 電腦知識網 >> 編程 >> .NET編程 >> 正文

鮮花預定系統:登錄和退出[3]

2013-11-13 12:21:00  來源: .NET編程 
    ——此文章摘自《ASPNET +SQL Server網絡應用系統開發案例精解》定價 特價 詳細>>http://tracklinktechcn/?m_id=dangdang&a_id=A&l=&l_type= width= height= border= nosave>

    </asp:HyperLink></TD>
                       </TR>
             </TABLE>
                       </asp:panel></td>
    </tr>

    ()ST_Leftaspxcs頁面是用戶驗證模塊的核心包含了用戶驗證的主要功能解釋如下
    protected void ib_Login_Click(object sender SystemEventArgs e)
    {
             //創建ST_User類的對象
             ST_GROUPFlowerPrearrangeST_User user = new ST_GROUPFlowerPrearrangeST_User();
             //獲取用戶名
             ST_name = thistb_AccountTextTrim();
             userST_Name = ST_name;
             //獲取密碼
             userST_Password = thistb_PasswordTextTrim();
             //判斷用戶是否存在
             if(userST_Login())
             {
                       //顯示歡迎信息
                       thislblInfoText = 歡迎您+userST_Name;
                       try
                       {
                                //獲得用戶信息
                                userST_GetUserInfo();
                                ST_id = userST_ID;
                                Session[UserName] = ST_name;
                                Session[UserID]   = ST_id;
                                if(ObjectEquals(RequestCookies[ShopFlowerLogin]null))
                                {
           ST_CreateCookie();
                     //顯示面板信息
                 ST_ShowInfo();
                                }
                                else
                                {
                 ST_ShowInfo();
         ST_UpdateCookie();

right>[http://developcsaicn/dotnet_ASP/htm>]  [http://developcsaicn/dotnet_ASP/htm>]  []  [http://developcsaicn/dotnet_ASP/htm>]  [http://developcsaicn/dotnet_ASP/htm>]  [http://developcsaicn/dotnet_ASP/htm>]  


From:http://tw.wingwit.com/Article/program/net/201311/15715.html
    推薦文章
    Copyright © 2005-2013 電腦知識網 Computer Knowledge   All rights reserved.