1. Home >
  2. Apps >
  3. Groups >

Onserverclick not sending the event

Question asked by Jatin Kumar in #Coffee Room on Feb 17, 2015
Jatin Kumar
Jatin Kumar · Feb 17, 2015
Rank C1 - EXPERT
i was just playing with html codes ,i was trying this
Html code:
<<input runat="server" id="SubmitButton" type="submit"  value="submit" onserverclick="MySubmitHandler" /></p> //submit Button
C# Code:
protected void MySubmitHandler(object sender, EventArgs args)
            ResultLabel.InnerText="Thanks for clicking :)";
<label id="ResultLabel" style="font-family: Arial; font-size: 12px;  font-weight: bold;  font-variant: normal; color: #FF0000; background-color: #00FF00" runat="server" >[Result will be displayed here]</label>
The onclickserver is not working and not sending any event,no result is being displayed??
and i know this can be done using some other ways i.e. javascript,asp.net controls Posted in: #Coffee Room

You must log-in or sign-up to reply to this post.

Click to Log-In or Sign-Up