Can you handle all button click events at once in a form?
Give coding.
Answer Posted / 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 |
Post New Answer View All Answers
What is managed extensibility framework?
explain how you can load related entities in ef (entity framework)?
How can I return string result from action in asp.net mvc?
What is ado.net data provider? : Entity framework
mention what are the various methods provided by the dataset object to generate xml?
What is MVVM design pattern?
What are the main components of .net framework?
Is dapper better than entity framework?
Explain test driven development (tdd) ?
What is renderbody?
Which version of the common language runtime (clr) does the .net framework 3.0 use?
Explain the types of Scaffoldings.
Explain the use of Inversion of control (IOC)?
In which assembly is the mvc framework defined?
Explain tempdata in mvc?