Last post Nov 14, 2017 01:31 AM by Deepak Panchal
Nov 13, 2017 02:20 PM|herlhay|LINK
How does one specify events for items like buttons.
Nov 13, 2017 05:11 PM|PatriceSc|LINK
You are using web pages coming from a web forms background ? Try
You are closer to the metal and you would check for Request.Form["MyButton"]. When a button is clicked, the text of the button is posted to the server using its name attribute as a key and the text of the button as a value (which usually you don't have really
Nov 14, 2017 01:31 AM|Deepak Panchal|LINK
first you can try to open the .aspx page in design view.
then you can add Button control from the Toolbox.
then you can select the button with the help of Mouse.
in the properties window , you will find the Events regarding Button control.
you can select the desires event and event will be added in to the code behind.
for example click event looks like below.
protected void Button1_Click(object sender, EventArgs e)
// Add your code here...
you can refer link below will give you information about every events supported by Button control with code example.