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 |
How to Insert a TextBox value in to Sql database using C#.Net coding
What type of filter does outputcacheattribute class represents?
What are the differences between Partial View and Display Template and Edit Templates in ASP.Net MVC?
Explain the methods used to render the views in ASP.Net MVC?
what are partial classes?
12 Answers Digimaker, HP, N Tech, TCS,
I have 2+ years of fake experience,actually i could not answer for project questions..?how can i answer please suggest me..?
How do I install .net framework?
If u have an Empty Xml file and u have to bind dataset data to empty xml file? if u have an empty dataset u have to bind xml file data to it?
what is client wins and store wins mode in entity framework concurrency?
What is asp net framework?
why DotNetFramework is included in building a software
What is Global Assembly Cache (GAC) and what is the purpose of it?