Can you handle all button click events at once in a form?
Give coding.
Answer / 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 |
what is connection pooling
Is it possible to share a view across multiple controllers?
what is use of entity container?
Explain how to use multiple submit buttons in ASP.Net MVC?
What is session state management?
what do you mean by table-per-hierarchy?
What is the .net framework and how does it work?
Why to use '{resource}.axd/{*pathInfo}' in routing in ASP.Net MVC?
What is the .net framework 3.0 (formerly winfx)?
What is clr? How does work clr & wht is work of clr?
What happens when I install the .net framework 3.0? How can I upgrade if I already have the .net framework 2.0 installed?
what is code first approach?