Introduction
In this article we are going to learn how to access the CommandArguments of the button, how to fire JavaScript function on click on the Button and prevent the Form submission, how to avoid multiple clicks while submitting the form on the server, how to post a page to another page in ASP.NET, how to specify the Tab index for the TextBox, Button or any other ASP.Net form control, how to specify the Tooltip for the ASP.NET Server controls and how to specify a default button on the page so that when user hits the Enter key that button gets clicked.
How to access the CommandArguments of the button?
In case we want to set an optional parameter for the button to determine some values in the server side code, we can use this approach.
CommandArguments is a way to get or set optional parameters to the command events along with CommandName.
ASPX PAGE
|
CODE BEHIND
0 comments:
Post a Comment