asp.net - Login OnClick Event not firing -
this first attempt @ creating asp.net website please kind. i'm attempting fire click event on submit button in asp.net, template i'm using has html
<div id="lightbox"></div> <div id="loginbox-panel"> <a href="#" id="lightbox-close"></a> <form action="#"> <fieldset> <div class="frame"> <h4>testsite</h4> <small>sign in account.</small> <div class="clear"></div> <input type="text" value="username" class="input-text autoclear" /> <input type="password" value="password" class="input-text autoclear" /> </div> <div class="separator"></div> <div> <input type="submit" value="sign in" class="input-submit float-right" /> <a href="#" class="float-left">forgot password?</a> </div> </fieldset> </form> </div>
i believe input type="submit"
client side made run server side event using
<input type="submit" value="sign in" class="input-submit float-right" runat="server" onserverclick="loginbutton_click"/>
with code behind
protected void loginbutton_click(object sender, eventargs e) { //login handler }
however, event not firing! please can advise how can loginbutton_click event fire
thanks
your form needs runat=server able send form server , wire click event on button.
Comments
Post a Comment