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 different between User Control and Web Control and Custom Control?
What are the types of authentication in .net
What is strong name?
When was .NET announced
Please explain me what the project manager will ask in the interview.The interview is for senior position in .Net (5 years experience )
What is difference between razor and web form engine?
Difference between .NET & J2EE
What are the contents of assembly?
What is the difference between old ADO.NET and Entity framework coding techniques?
Why do you need to serialize
If we write return statement in finally block will it works fine or throws any error?
What is namespace used for loading assemblies at run time and name the methods?