Can you handle all button click events at once in a form?
Give coding.
Answer Posted / 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 View All Answers
Can I add mvc testcases in visual studio express?
What is representational state transfer (rest) mean?
mention what is code first approach and model first approach in entity framework?
which are the key concepts of entity data model?
In which assembly is the mvc framework defined?
Why to use html.partial in mvc?
Do you know about the new features in asp.net mvc 4 (asp.net mvc4)?
What are Validation Annotations?
What is disconnected scenario? : Entity framework
How would you deploy your old applications with .net framework 4.0? Are the old applications compatible?
how do you truncate a table using entity data model?
Explain the .net framework.
What are the two ways to add constraints to a route?
What is entitytype? : Entity framework
what is ssdl?