Click here to Skip to main content
15,881,803 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:


<!-- Start footer -->




<!-- End footer -->
<!-- JS -->




<script src="AdminLTE-2.3.0/assets/js/jquery-1.11.3.min.js"></script>
<!-- jquery-1.11.3.min js
============================================ -->


<!-- bootstrap js
============================================ -->
<script src="AdminLTE-2.3.0/assets/js/bootstrap.min.js"></script>

<!-- jQuery REVOLUTION Slider -->
<script src="AdminLTE-2.3.0/assets/js/jquery.themepunch.tools.min.js"></script>
<script src="AdminLTE-2.3.0/assets/js/jquery.themepunch.revolution.min.js"></script>
<script src="AdminLTE-2.3.0/assets/js/rs.home.js"></script>



<!-- jquery.sidr.min js
============================================ -->
<script src="AdminLTE-2.3.0/assets/js/jquery.sidr.min.js"></script>



<!-- main js
============================================ -->
<script src="AdminLTE-2.3.0/assets/js/main.js"></script>

<!-- log in -->
<script src="AdminLTE-2.3.0/assets/js/log.js"></script>


</form>

</body>

What I have tried:

login button is working but submit button(signup) is not working
Posted
Updated 22-Jun-16 2:56am
v2
Comments
Kornfeld Eliyahu Peter 22-Jun-16 5:17am    
And you expect us to take that s*** and run for you?! Use your debugger!!!
Manoj Maharana 22-Jun-16 5:36am    
sir both botton is not working...only login button working and for sigup it will automatically coming to pageload
Manoj Maharana 22-Jun-16 5:37am    
is there any way to solve this problem???

1 solution

You need to make your statement clear if you want us to easily assist you on your issue. Second, please try to format your code to make more readable.

Down to your issue, You mentioned signup button isn't firing but I can't find that button in your markup or I am just blind :)

Also you are using a server controls (e.g ASP.NET TextBox) in your form, but your form doesn't have a runat="server" attribute assigned to it. Your button Login fired because you wired-up an OnClick server event to it. Your other Button is of type submit and doesn't have an event handler. Button with type "submit" will submit the form when you click on it. It doesn't fire an onclick event but it will fire the load event. Take make it more clear here's a quick demo:

ASPX:
HTML
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <input type="text" name="txt1" />
        <button type="submit">Submit Form!</button>
    </div>
    </form>
</body>
</html>


CODE BEHIND:
C#
using System;

namespace WebFormDemo
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e) {
            if (Request.Form["txt1"] != null) {
                var stringValue = Request.Form["txt1"];
            }
        }
    }
}


Clicking on the submit button will perform a POST and allowing you to get posted values from an input elements.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900