⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 verify.aspx

📁 www.gsmlanka.com is a website for trading of mobile phone with a source code.
💻 ASPX
字号:


<script runat="server">
sub loginuser(Sender as Object, e as EventArgs)
	
       
        Dim strUname as string
        Dim strPass as string
        Dim strSQLQuery as string
        Dim CheckUname as string
        Dim Checkpass as string

        CheckUname =txtuser.Text
        Checkpass = txtpass.Text
     	 call dbcon
 		strSQLQuery = "select userID,pass_word from users where userID='" & txtuser.Text & "'" 
		Bcon.open
        bcmd = New SqlCommand(strSQLQuery, Bcon)
        objreader = bcmd.ExecuteReader

		If objreader.HasRows = False Then

           lblmessege.text="Your userID is incorrect. Please try again"
		   lblmessege.visible=true
        End If

 
        Do while (objreader.Read())

            strUname=objReader("UserID")
            strPass=objReader("pass_word")
			
			

       if  (strUname <> Request.Form("txtuser")) Then
                lblmessege.text = "Your userID is incorrect. Please try again."
				txtuser.text=""
                lblmessege.Visible = True
            elseif (strPass <> Request.Form("txtpass")) Then
                lblmessege.text = "Your password is incorrect. Please try again."
                lblmessege.Visible = True
				
				
            else
                Session("userid") = strUname
				session("secCOde")=cstr(getsecCode(1,546789))
				session("checklog")=false
                Response.Redirect("index.aspx")
				txtuser.text=""
            end if

        loop

        bcon.close
				
				

end sub

</script>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -