button click without submiting the page
-
i need to fire the click event for a button but without submiting the page... someone help me please.... hi i am ezak neno
Hi ezak... If you are using Web Controls Button then it is always run at server (Mean go to server) dont confuse... It depands on your requirement please define what operation u want after button click... then we decide how u can manage it. Tarang j vyas
-
Hi ezak... If you are using Web Controls Button then it is always run at server (Mean go to server) dont confuse... It depands on your requirement please define what operation u want after button click... then we decide how u can manage it. Tarang j vyas
i use c# language for webApp...and what i want to do is.....a chess game... i did it at the windows forms...i handled all the defualt actions for all the unites....by obtaining the x,y in the form_click....when i begin in the webform...i didn't found the form_click...so i decided to make all the unites such a buttons...(and changing the border style)..to make it flate..... i know it a long story...but what i want to do is...when u click the button (that has a unit image)...to not submit the page...and do anther action.... plaese help me man......
-
i use c# language for webApp...and what i want to do is.....a chess game... i did it at the windows forms...i handled all the defualt actions for all the unites....by obtaining the x,y in the form_click....when i begin in the webform...i didn't found the form_click...so i decided to make all the unites such a buttons...(and changing the border style)..to make it flate..... i know it a long story...but what i want to do is...when u click the button (that has a unit image)...to not submit the page...and do anther action.... plaese help me man......
Be aware that button has two types of ocnlick events. Server side (the one that submits the page) and client side (the one you want) what you can do is to hav eboth attached to a button. However this cannot be done in design time. In page_load event you can do something like this to attach client side onclick handlers to your buttons: myBtn.attributes.Add("onclick","myJavaScriptFunction()"); another option is not to use server side buttons (not to user runat="server" attributes) r.