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 are the different types of filters, in an asp.net mvc application?

1 Answers   NA,


Can any particular component of .net framework 3.0 be removed?

0 Answers  


What is .net architecture?

0 Answers  


what is use of entity container?

0 Answers   Microsoft,


What is the use of finalize and dispose eventhough garbage collector is working?

3 Answers   Kanbay,


explain lazy loading, eager loading, and explicit loading?

0 Answers   Microsoft,


What is entitytypes? : Entity framework

0 Answers  


what is ADO.NET

8 Answers   NIIT,


Possible ways to prevent xss attacks on mvc application?

0 Answers  


Requirement is: try { \\SQL Query } catch(Exception i) { print a } catch(SQLQueryException e) { \\SQL Query } Qu)I Got Exception in "try" block. Which "catch" statement (i.e. 1st catch or 2nd catch ) catches the exception and Why???

6 Answers   3i Infotech,


How to set the debug mode

1 Answers   4Cplus,


Explain encapsulation

1 Answers   HPCL, Hughes Systique Corporation,


Categories