Click here to Skip to main content
15,908,264 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: colander type of box and put A, B, C, D up to Z Pin
Christian Graus2-Jan-09 5:10
protectorChristian Graus2-Jan-09 5:10 
AnswerRe: colander type of box and put A, B, C, D up to Z Pin
Guffa2-Jan-09 18:54
Guffa2-Jan-09 18:54 
QuestionRemove Space Pin
shanthi jothi2-Jan-09 2:19
shanthi jothi2-Jan-09 2:19 
AnswerRe: Remove Space Pin
Abhijit Jana2-Jan-09 2:33
professionalAbhijit Jana2-Jan-09 2:33 
GeneralRe: Remove Space Pin
shanthi jothi2-Jan-09 3:04
shanthi jothi2-Jan-09 3:04 
AnswerRe: Remove Space Pin
Brij2-Jan-09 2:47
mentorBrij2-Jan-09 2:47 
AnswerRe: Remove Space Pin
Christian Graus2-Jan-09 5:37
protectorChristian Graus2-Jan-09 5:37 
QuestionLog In problem Pin
varsh122-Jan-09 2:08
varsh122-Jan-09 2:08 
Hi!
I have a little problem. My problem is:

I have two user.
If first user Enter Own LogIn & password. It goes to another page i.e. "first.aspx".
If second user Enter Own LogIn & password. It goes to another page i.e. "second page.aspx.

My login page is common for both user.
I have use this code but it goes only one page. Actually I don't know what can I do. Please solve my problem.

protected void Button1_Click(object sender, EventArgs e)
    {
        string name = TextBox1.Text;
        string password = TextBox2.Text;
        string str = " select * from login where user_name ='"+name+"' and password ='"+password+"'";
        SqlDataAdapter da= new SqlDataAdapter(str,con);
        da.Fill(ds,"a");

        if ((ds.Tables[0].Rows.Count) == 0)
        {
            Label1.Text = "User Does not Exist";
        }
       
        else
        {
              Response.Redirect("first.aspx");
      }


thanx in advance
AnswerRe: Log In problem Pin
N a v a n e e t h2-Jan-09 2:14
N a v a n e e t h2-Jan-09 2:14 
GeneralRe: Log In problem Pin
varsh122-Jan-09 18:27
varsh122-Jan-09 18:27 
GeneralRe: Log In problem Pin
Abhijit Jana2-Jan-09 19:37
professionalAbhijit Jana2-Jan-09 19:37 
GeneralRe: Log In problem Pin
varsh122-Jan-09 19:46
varsh122-Jan-09 19:46 
AnswerRe: Log In problem Pin
Abhijit Jana2-Jan-09 2:28
professionalAbhijit Jana2-Jan-09 2:28 
GeneralRe: Log In problem Pin
N a v a n e e t h2-Jan-09 2:36
N a v a n e e t h2-Jan-09 2:36 
GeneralRe: Log In problem Pin
Abhijit Jana2-Jan-09 2:52
professionalAbhijit Jana2-Jan-09 2:52 
GeneralRe: Log In problem Pin
N a v a n e e t h2-Jan-09 3:27
N a v a n e e t h2-Jan-09 3:27 
QuestionHow To Align Element In DIV Tag Pin
ais072-Jan-09 1:36
ais072-Jan-09 1:36 
AnswerRe: How To Align Element In DIV Tag Pin
Abhijit Jana2-Jan-09 1:41
professionalAbhijit Jana2-Jan-09 1:41 
GeneralRe: How To Align Element In DIV Tag Pin
ais072-Jan-09 1:48
ais072-Jan-09 1:48 
GeneralRe: How To Align Element In DIV Tag Pin
moon_stick5-Jan-09 1:40
moon_stick5-Jan-09 1:40 
Question[Message Deleted] Pin
umeshrajpoot2-Jan-09 0:14
umeshrajpoot2-Jan-09 0:14 
AnswerCrosspost Pin
Brij2-Jan-09 0:29
mentorBrij2-Jan-09 0:29 
GeneralRe: Crosspost Pin
umeshrajpoot2-Jan-09 0:59
umeshrajpoot2-Jan-09 0:59 
GeneralRe: Crosspost Pin
Brij2-Jan-09 1:10
mentorBrij2-Jan-09 1:10 
GeneralRe: Crosspost [modified] Pin
Abhijit Jana2-Jan-09 1:15
professionalAbhijit Jana2-Jan-09 1:15 

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.