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


Please Help Members By Posting Answers For Below Questions

Explain the difference between Viewbag and Viewdata in ASP.NET MVC?

778


How we can call a JavaScript function on the change of a Dropdown List in ASP.Net MVC?

747


What is definingquery in entity framework? : Entity framework

729


Do you know about the new features in asp.net mvc 4 (asp.net mvc4)?

781


What is the .net framework and how does it work?

736


The order of the filters that get executed, if the multiple filters are implemented?

805


What is the use of the default route {resource}.axd/{*pathinfo} ?

752


Explain the request flow in asp.net mvc framework?

723


What is the difference between renderaction and renderpartial?

834


Explain the new features added in version 4 of mvc (mvc4)?

752


How does the .net framework 3.0 relate to windows vista?

773


What is namespace of asp.net mvc?

840


Explain the tools used for unit testing in ASP.Net MVC

829


Mention the core components of .net framework?

754


What is .net architecture?

735