Can you handle all button click events at once in a form?
Give coding.
Answer / seema dalal
suppose ,there r 3 buttons & we have to handle all button
click events at once. Then try following steps
1) Write eventhandler
Public Sub clickevent(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Button1.Click, Button2.Click,
Button3.Click
Dim b As Button = CType(sender, Button)
Response.Write("hello:" & b.Text)
End Sub
2) then call this event handler on click event of eech
buttons.
| Is This Answer Correct ? | 5 Yes | 0 No |
How would you make a combo-box appear in one column of a DataGrid?
What is side by side Execution ?
What is the .net framework 3.0 (formerly winfx)?
What is the property available to check if the page posted or not
what are abstract classes? what is overriding?
Will the finally block get executed if an exception has not occurred
When i am using Ajax controls (updatepanel),Is page events all are executed or only some events are executed?which page events are executed?
Httpcontext objects?
What is the difference between model view and controller?
What is difference between razor and web form engine?
Can we create .DLL file without using the namespace?
What is Peek method in Tempdata in ASP.Net MVC?