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

How to Insert a TextBox value in to Sql database using C#.Net coding

2 Answers  


What type of filter does outputcacheattribute class represents?

0 Answers  


What are the differences between Partial View and Display Template and Edit Templates in ASP.Net MVC?

0 Answers  


Explain the methods used to render the views in ASP.Net MVC?

0 Answers  


what are partial classes?

12 Answers   Digimaker, HP, N Tech, TCS,






I have 2+ years of fake experience,actually i could not answer for project questions..?how can i answer please suggest me..?

0 Answers   Accenture,


How do I install .net framework?

0 Answers  


If u have an Empty Xml file and u have to bind dataset data to empty xml file? if u have an empty dataset u have to bind xml file data to it?

0 Answers  


what is client wins and store wins mode in entity framework concurrency?

0 Answers   Microsoft,


What is asp net framework?

0 Answers  


why DotNetFramework is included in building a software

0 Answers   Infosys, Symphony,


What is Global Assembly Cache (GAC) and what is the purpose of it?

2 Answers  


Categories