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
Difference between ASP.NET MVC and ASP.NET WebForms?
What is entitycontainer? : Entity framework
Does Tempdata hold the data for other request in ASP.Net MVC?
What is difference between viewbag and viewdata and tempdata?
Explain what is routing?
What is the meaning of unobtrusive javascript?
Which approach provides better support for test driven development - asp.net mvc or asp.net webforms?
Explain the methods used to render the views in mvc?
How do you specify comments using razor syntax?
what is complex type?
What is ViewData and TempData in ASP.Net MVC?
Give an example for authorization filters in an asp.net mvc application?
What is the advantage of using asp.net routing?
What are ajax helpers in asp.net mvc?
What is viewbag title?