Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Can you handle all button click events at once in a form?
Give coding.

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is managed extensibility framework?

1053


explain how you can load related entities in ef (entity framework)?

1058


How can I return string result from action in asp.net mvc?

1093


What is ado.net data provider? : Entity framework

1114


mention what are the various methods provided by the dataset object to generate xml?

1073


What is MVVM design pattern?

1082


What are the main components of .net framework?

1093


Is dapper better than entity framework?

1028


Explain test driven development (tdd) ?

1072


What is renderbody?

1107


Which version of the common language runtime (clr) does the .net framework 3.0 use?

1140


Explain the types of Scaffoldings.

1134


Explain the use of Inversion of control (IOC)?

1101


In which assembly is the mvc framework defined?

1090


Explain tempdata in mvc?

1050