Can you handle all button click events at once in a form?
Give coding.



Can you handle all button click events at once in a form? Give coding. ..

Answer / 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

More Dot Net Framework Interview Questions

And if they have conflicting method names ?

1 Answers  


How does work clr?

0 Answers  


What happens when you encounter a continue statement inside the for loop ?

1 Answers  


What is the use of trace utility ?

2 Answers  


How can you return string result from Action in ASP.Net MVC?

0 Answers  






What is MSIL, IL, CTS?

13 Answers  


Does Tempdata hold the data for other request in ASP.Net MVC?

0 Answers  


How large is the .net framework 3.0? Does this change make the release larger?

0 Answers  


About Assembly in .NET, types of assemblies, their difference, How to register into GAC. How to generate the strong names & its use ?

6 Answers   Infosys, Microsoft, MMTS,


Explain Sections is ASP.Net MVC?

0 Answers  


Describe the gac in the .net framework.

0 Answers  


What are the methods in Thread class?

3 Answers  


Categories