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
Explain what platforms does the .net framework run on?
Does Tempdata hold the data for other request in ASP.Net MVC?
What are the advantages of razor view engine?
What is Layout in ASP.Net MVC?
What is objectcontext? : Entity framework
What is a view engine?
What is difference between razor and web form engine?
Is .net framework 4.8 the last version?
What are Validation Annotations?
Asp.net mvc application, makes use of settings at 2 places for routing to work correctly. What are these 2 places?
Can I set the unlimited length for "maxjsonlength" property in config?
What is the use of web api ? Why web api needed, if you have already restful services using wcf ?
What are the possible razor view extensions?
What are Non Action methods in ASP.Net MVC?
what is way of loading data in ef (entity framework)?