See This

Sanjay Verma replied to shreya verma at 08-May-08 06:18

Add following code to click event of login button

and pass the parameters username and password like this.

GetDataSet is the function for getting values in dataset from your database.

        str = "SP_LOGIN '" & txtUsername.Text & "','" & txtPassword.Text & "'"
        ds = obj.GetDataSet(str)
        If ds.Tables(0).Rows.Count > 0 Then           
                Response.Redirect("Details.aspx")
        Else
                lblError.Visible = True
        End If

 




Click here to sign in and reply. You could earn money via our $500 contest just for being helpful.
  Tell this.... - shreya verma  08-May-08 12:15:23 AM
      Re: - Aravind Kumar  08-May-08 12:29:02 AM
          Plz tell... - shreya verma  08-May-08 12:33:29 AM
              In this way... - santhosh kapa  08-May-08 12:57:48 AM
                  tell - shreya verma  08-May-08 1:07:16 AM
                      it will... - santhosh kapa  08-May-08 1:13:08 AM
                          no - shreya verma  08-May-08 1:29:08 AM
                              hmm...confused - santhosh kapa  08-May-08 1:41:19 AM
      try this... - Vasanthakumar D  08-May-08 12:33:14 AM
      Try this - Sujit Patil  08-May-08 12:46:02 AM
          What to do??? - shreya verma  08-May-08 1:11:51 AM
              try this... - santhosh kapa  08-May-08 1:16:36 AM
              You can - Sujit Patil  08-May-08 2:12:26 AM
      If you are using Forms Authentication - Vaibhav Gadodia  08-May-08 1:08:32 AM
      See This - Sanjay Verma  08-May-08 6:18:36 AM
View Posts