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
Explain the role of assembly in the .net framework.
How does the 'page lifecycle' of asp.net mvc works?
Explain ASP.NET MVC Identity and Security?
What you mean by routing in asp.net mvc?
What is entity framework used for?
will there be any issues adding a table without primary keys to a data model?
What is MVVM design pattern?
Which are the important namespaces used in mvc?
What is the use of action filters in an mvc application?
Is dapper better than entity framework?
How to enable Attribute Routing?
What is .net framework used for?
What is the difference between tempdata and viewbag?
What are the new enhancements done in default project template of asp.net mvc 4?
What is filters in web api?