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

What is different between User Control and Web Control and Custom Control?

2 Answers  


What are the types of authentication in .net

1 Answers  


What is strong name?

5 Answers  


When was .NET announced

1 Answers  


Please explain me what the project manager will ask in the interview.The interview is for senior position in .Net (5 years experience )

0 Answers   NNN,


What is difference between razor and web form engine?

0 Answers  


Difference between .NET & J2EE

1 Answers  


What are the contents of assembly?

2 Answers  


What is the difference between old ADO.NET and Entity framework coding techniques?

0 Answers  


Why do you need to serialize

1 Answers  


If we write return statement in finally block will it works fine or throws any error?

7 Answers   Kanbay,


What is namespace used for loading assemblies at run time and name the methods?

2 Answers  


Categories