ASP.NET Web Forms ButtonThis control is used to perform events. It is also used to submit client request to the server. To create Button either we can write code or use the drag and drop facility of visual studio IDE. This is a server side control and asp provides own tag to create it. The example is given below. Server renders it as the HTML control and produces the following code to the browser. This control has its own properties that are tabled below.
Example// WebControls.aspx Code Behind// WebControls.aspx.cs Output: It produces the following output. This button displays a message when clicked, as shown below.
Next TopicASP.NET HyperLink
|