Onclick Event
-
Hi... I am newbie to asp. my code is,
<asp:Button ID="LOGIN" Text="Submit" Height = "25px" Width = "78px"
runat="server" onclick="LOGIN_Click" ></asp:Button>
<br /><%if (Login\_Result == "1") { } else { Response.Write(Login\_Result); } %> </p>
when i click login button it will check in the database by c# code. if its true means Login_Result will return "1". Otherwise it will return "0". if Login_Result is "1", I have call call a new form main.aspx. How to do this? Help me...
G.Paulraj
-
Hi... I am newbie to asp. my code is,
<asp:Button ID="LOGIN" Text="Submit" Height = "25px" Width = "78px"
runat="server" onclick="LOGIN_Click" ></asp:Button>
<br /><%if (Login\_Result == "1") { } else { Response.Write(Login\_Result); } %> </p>
when i click login button it will check in the database by c# code. if its true means Login_Result will return "1". Otherwise it will return "0". if Login_Result is "1", I have call call a new form main.aspx. How to do this? Help me...
G.Paulraj
Response.Redirect("main.aspx");
is one way: there are others.
Tychotics: take us back to the moon "Life, for ever dying to be born afresh, for ever young and eager, will presently stand upon this earth as upon a footstool, and stretch out its realm amidst the stars." H. G. Wells
-
Hi... I am newbie to asp. my code is,
<asp:Button ID="LOGIN" Text="Submit" Height = "25px" Width = "78px"
runat="server" onclick="LOGIN_Click" ></asp:Button>
<br /><%if (Login\_Result == "1") { } else { Response.Write(Login\_Result); } %> </p>
when i click login button it will check in the database by c# code. if its true means Login_Result will return "1". Otherwise it will return "0". if Login_Result is "1", I have call call a new form main.aspx. How to do this? Help me...
G.Paulraj
what about code behind? Is it in c# or vb? If its c# , then why don't you write your code on the on click event? :-D
-
what about code behind? Is it in c# or vb? If its c# , then why don't you write your code on the on click event? :-D
You should check the original post
Paulraj G wrote:
it will check in the database by c# code.
LokeshZende wrote:
If its c# , then why don't you write your code on the on click event?
So you can't use code-behind with VB.NET? You have done nothing to answer the OPs question.
I know the language. I've read a book. - _Madmatt