1 Replies - 1561 Views - Last Post: 07 May 2014 - 09:15 AM Rate Topic: -----

#1 latbabs  Icon User is offline

  • New D.I.C Head

Reputation: -3
  • View blog
  • Posts: 3
  • Joined: 24-June 10

pls i need an urgent reply about asp.Net

Posted 07 May 2014 - 09:10 AM

i need to create a login that has to pull the username and the password from a database table. the table is already been created and been linked with my application. so i need help on how to achieve this.... i will appreciate having the codes from friends.

this is what i have tried


 protected void login1_Click(object sender, EventArgs e)
   
        {
            string userName = this.loginusernametextbox.Text;
            string passwd = this.loginpasswordtextbox.Text;


            if (Login(userName, password))
            {
                MessageBox.Show("Login Successfully");
            }
            else
            {
                MessageBox.Show("Login Unsuccessfully!");
            }
        }
    
}

This post has been edited by modi123_1: 07 May 2014 - 09:20 AM
Reason for edit:: highlight your text that is code and click the 'code' button (in the eidtor) to add code tags


Is This A Good Question/Topic? 0
  • +

Replies To: pls i need an urgent reply about asp.Net

#2 astonecipher  Icon User is offline

  • D.I.C.
  • member icon

Reputation: 802
  • View blog
  • Posts: 3,510
  • Joined: 03-December 12

Re: pls i need an urgent reply about asp.Net

Posted 07 May 2014 - 09:15 AM

Well, that shows a real effort there. How about you try the code to connect, the code to find if there is a match, the code to do something other than call a nonexistent function and display a message?
Was This Post Helpful? 1
  • +
  • -

Page 1 of 1