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 is iobjectset? : Entity framework
What is a model in programming?
What does mvvm mean?
Explain what is asp.net mvc?
Please explain me what the project manager will ask in the interview.The interview is for senior position in .Net (5 years experience )
What are the 3 main components of an asp.net mvc application?
What is .net framework in simple terms?
What is routeconfig.cs in mvc 4?
mention what is csdl, ssdl and msl sections in an edmx file?
How to return the JSON from action method in ASP.Net MVC?
what is entityclient?
What is Peek method in Tempdata in ASP.Net MVC?
What is net framework 3.0 ?
Explain how you can send the result back in JSON format in MVC?
Can you explain the page life cycle of mvc?