Click here to Skip to main content
15,921,660 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: stop the flow the project Pin
Wendelius22-Jan-09 23:17
mentorWendelius22-Jan-09 23:17 
GeneralRe: stop the flow the project Pin
kulandaivel_mca200722-Jan-09 23:23
kulandaivel_mca200722-Jan-09 23:23 
GeneralRe: stop the flow the project Pin
Wendelius22-Jan-09 23:26
mentorWendelius22-Jan-09 23:26 
GeneralRe: stop the flow the project Pin
kulandaivel_mca200722-Jan-09 23:33
kulandaivel_mca200722-Jan-09 23:33 
GeneralRe: stop the flow the project Pin
Wendelius22-Jan-09 23:43
mentorWendelius22-Jan-09 23:43 
GeneralRe: stop the flow the project Pin
kulandaivel_mca200723-Jan-09 0:07
kulandaivel_mca200723-Jan-09 0:07 
GeneralRe: stop the flow the project Pin
Wendelius23-Jan-09 0:16
mentorWendelius23-Jan-09 0:16 
GeneralRe: stop the flow the project Pin
kulandaivel_mca200723-Jan-09 0:21
kulandaivel_mca200723-Jan-09 0:21 
s u r right...


see this peace of code...
this is my loging forms's button(submit) click event...

when the program try to read table values error occurs...



private void button2_Click_1(object sender, EventArgs e)
{

objproperties.Username = txtuname.Text;
objproperties.Password = txtpword.Text;
objDSLogin = objfunction.mthGetLogin(objproperties);
if (objDSLogin.Tables[0].Rows.Count > 0)
{
if (objDSLogin.Tables[0].Rows[0]["status"].ToString() == "User")
{
objproperties.Username = txtuname.Text;
objfunction.mthUsernameInsert(objproperties);
this.Hide();
UserForm uf = new UserForm();
uf.Show();

}
else if (objDSLogin.Tables[0].Rows[0]["status"].ToString() == "Admin")
{
this.Hide();
AdminForm1 af = new AdminForm1();
af.Show();
}

else
{
label4.Text = "Login Failed... Try Again";
label4.Visible = true;
txtpword.Text = "";
txtuname.Focus();

}


}
else
{
label4.Visible = true;
txtpword.Text = "";
txtuname.Focus();

}




}
GeneralRe: stop the flow the project Pin
Wendelius23-Jan-09 0:57
mentorWendelius23-Jan-09 0:57 
GeneralRe: stop the flow the project Pin
kulandaivel_mca200723-Jan-09 0:15
kulandaivel_mca200723-Jan-09 0:15 
GeneralRe: stop the flow the project Pin
Wendelius23-Jan-09 0:18
mentorWendelius23-Jan-09 0:18 
GeneralRe: stop the flow the project Pin
kulandaivel_mca200723-Jan-09 0:22
kulandaivel_mca200723-Jan-09 0:22 
GeneralRe: stop the flow the project Pin
kulandaivel_mca200723-Jan-09 0:57
kulandaivel_mca200723-Jan-09 0:57 
Questionmessage box Pin
vedharadha22-Jan-09 20:14
vedharadha22-Jan-09 20:14 
AnswerRe: message box Pin
VenkatFor.NET22-Jan-09 20:31
VenkatFor.NET22-Jan-09 20:31 
GeneralRe: message box Pin
vedharadha22-Jan-09 20:34
vedharadha22-Jan-09 20:34 
GeneralRe: message box Pin
VenkatFor.NET22-Jan-09 20:46
VenkatFor.NET22-Jan-09 20:46 
AnswerRe: message box Pin
Wendelius22-Jan-09 20:40
mentorWendelius22-Jan-09 20:40 
GeneralRe: message box Pin
vedharadha22-Jan-09 20:52
vedharadha22-Jan-09 20:52 
GeneralRe: message box Pin
VenkatFor.NET22-Jan-09 20:58
VenkatFor.NET22-Jan-09 20:58 
GeneralRe: message box Pin
Wendelius22-Jan-09 21:00
mentorWendelius22-Jan-09 21:00 
GeneralRe: message box Pin
vedharadha22-Jan-09 22:06
vedharadha22-Jan-09 22:06 
GeneralRe: message box Pin
Wendelius22-Jan-09 22:20
mentorWendelius22-Jan-09 22:20 
GeneralRe: message box Pin
vedharadha22-Jan-09 22:26
vedharadha22-Jan-09 22:26 
GeneralRe: message box Pin
Wendelius22-Jan-09 22:30
mentorWendelius22-Jan-09 22:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.