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 difference between Viewbag and Viewdata in ASP.NET MVC?
How we can call a JavaScript function on the change of a Dropdown List in ASP.Net MVC?
What is definingquery in entity framework? : Entity framework
Do you know about the new features in asp.net mvc 4 (asp.net mvc4)?
What is the .net framework and how does it work?
The order of the filters that get executed, if the multiple filters are implemented?
What is the use of the default route {resource}.axd/{*pathinfo} ?
Explain the request flow in asp.net mvc framework?
What is the difference between renderaction and renderpartial?
Explain the new features added in version 4 of mvc (mvc4)?
How does the .net framework 3.0 relate to windows vista?
What is namespace of asp.net mvc?
Explain the tools used for unit testing in ASP.Net MVC
Mention the core components of .net framework?
What is .net architecture?