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 the use of action filters in an mvc application?
What is the role of the jit compiler in .net framework?
What is session state management?
What is filters in web api?
Explain linq to entities? : Entity framework
Describe the .net framework architecture.
What are the advantages of razor view engine?
What is entity framework in asp net?
When using aspx view engine, to have a consistent look and feel, across all pages of the application, we can make use of asp.net master pages. What is asp.net master pages equivalent, when using razor views?
What are Model Binders in ASP.Net MVC?
Which are the important namespaces used in mvc?
What is .net framework & its benefits?
What are Code Blocks in Views?
What are the possible razor view extensions?
What are child actions in ASP.Net MVC?