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 |
Is there built-in support for tracing/logging
How can I tell what .net framework is installed?
What is MSIL, IL, CTS?
Explain tempdata in asp.net mvc?
Explain the advantage of packaging over xcopy in .net?
Httpcontext objects?
What is edm (entity data model)? : Entity framework
How you can implement custom validation in asp.net MVC?
What is the use of dataadapter ?
Which filter executes first in an asp.net mvc application?
What is stateless model?
What is strong name and which tool is used for this ?
4 Answers Accenture, BirlaSoft,