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 tracing?Where it used.Explain few methods available

1 Answers  


How can we determine action invoked from HTTP GET or HTTP POST?

0 Answers  


Which version of .net framework is installed?

0 Answers  


What is managed extensibility framework?

0 Answers  


what is scalar property?

0 Answers   Microsoft,






What are the main components of .net framework?

0 Answers  


I am confusing about reflection.can any one tell about REFLECTION with example?

1 Answers   TCS,


what is conceptual model?

0 Answers   Microsoft,


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,


What is ado.net data provider? : Entity framework

0 Answers  


Is any files are generated,when we are adding the web reference to the web service?

1 Answers  


When using aspx view engine, to have a consistent look and feel, across all pages of the application, we can make use of asp.net master pages. What is asp.net master pages equivalent, when using razor views?

0 Answers  


Categories