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 are the different types of filters, in an asp.net mvc application?
Can any particular component of .net framework 3.0 be removed?
What is .net architecture?
what is use of entity container?
What is the use of finalize and dispose eventhough garbage collector is working?
explain lazy loading, eager loading, and explicit loading?
What is entitytypes? : Entity framework
what is ADO.NET
Possible ways to prevent xss attacks on mvc application?
Requirement is: try { \\SQL Query } catch(Exception i) { print a } catch(SQLQueryException e) { \\SQL Query } Qu)I Got Exception in "try" block. Which "catch" statement (i.e. 1st catch or 2nd catch ) catches the exception and Why???
How to set the debug mode
Explain encapsulation
1 Answers HPCL, Hughes Systique Corporation,