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 |
And if they have conflicting method names ?
How does work clr?
What happens when you encounter a continue statement inside the for loop ?
What is the use of trace utility ?
How can you return string result from Action in ASP.Net MVC?
What is MSIL, IL, CTS?
Does Tempdata hold the data for other request in ASP.Net MVC?
How large is the .net framework 3.0? Does this change make the release larger?
About Assembly in .NET, types of assemblies, their difference, How to register into GAC. How to generate the strong names & its use ?
6 Answers Infosys, Microsoft, MMTS,
Explain Sections is ASP.Net MVC?
Describe the gac in the .net framework.
What are the methods in Thread class?