Tutorials
ASP.NET
ASP.NET Web Forms Controls
ASP.NET Hyperlink Controls
ASP.NET Button Controls
ASP.NET List Controls
Here the name of the button is Button2, which is the id of the button. The button event takes two parameters which are object sender and System.EventArgs.
the object sender specifies that which button on the form has been clicked. And the next parameter System.EventArgs tells the asp.net that what is being send to the button method.
Below is the list of all the events supported by button control.
Public Events
| Occurs when the Button control is clicked. | |
| Occurs when the Button control is clicked. | |
| Occurs when the server control binds to a data source. | |
| Occurs when a server control is released from memory, which is the last stage of the server control lifecycle when an ASP.NET page is requested. | |
| Occurs when the server control is initialized, which is the first step in the its lifecycle. | |
| Occurs when the server control is loaded into the Page object. | |
| Occurs when the server control is about to render to its containing Page object. | |
| Occurs when the server control is unloaded from memory. |
Changes Text in the TextBox when the Button is clicked:
As you see its very simple to raise and capture, capture and take action on the event.
Next Page: ASP.NET List Controls
|
Excellent article on Working with Web Forms Controls and C#. I really benefitted with the contents and was amazed to see this kind of extensive explanation on the topic which is quite rare on Net....... Wasiur Rahman |
| good explanation ...thanks |
|
iam new learner of this topic.in my view it is in very useful for selflearning students. the author's way of illustration is appreciable.thanks for your efforts and helping. |
| I express thank you ! |
| :) Excellent article on Working with Web Forms Controls and C#. |
|
i m having 2 forms in c#. Eachone is having a textbox control. i want to retreive data of textbox of form1 to textbox of form2. How do i do that,Can anyone help me? |
|
you can also take a look at this one good article |
| very good easy to learn |
| very effective & usefull |
| Its really very useful for me to gain a lot of knowledge |
| Its really xlent for .net novice people... |
| thank you for your valid information |