ASP.NET

Question:

What are the differences between OnClick, OnServerClick and OnClientClick?

Answer:

System.Web.UI.HtmlControls (HTML controls such as img, input button, etc.) have OnClick and OnServerClick events whereas System.Web.UI.WebControls (web controls such as asp:LinkButton, asp:Button, etc.) have OnClick and OnClientClick events.





OnClientClick has been available since 2.0. It replaces the following code:

  Go Back    Print This Page    Submit Feedback

Share

© 2008 - Some Rights Reserved. - Terms and Credits - Contact Form - Advertising - Admin Login - About - News