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
What are child actions in ASP.Net MVC?
Can I use razor code in javascript in asp.net mvc?
When using razor views, do you have to take any special steps to protect your asp.net mvc application from cross site scripting (xss) attacks?
what is use of entity container?
What is the need of Action Filters in ASP.Net MVC
Why we need a separate mobile project template, while we can render our web application in mobile ?
What is the difference between adding routes, to a webforms application and to an mvc application?
Explain two instances where routing is not implemented or required?
What does mvvm mean?
What is the use of the default route?
I want ask from plz smaple example code for Biztalkk server
What is entitytypes? : Entity framework
What is needed for running an application built on winfx on the .net framework 3.0?
How to change the action name in mvc?
What is the use of web api ? Why web api needed, if you have already restful services using wcf ?