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 are the two ways to add constraints to a route?

980


Is .net framework backwards compatible?

1088


What are the differences between Partial View and Display Template and Edit Templates in ASP.Net MVC?

1084


how do you query in entity model when the result has a join from from different database other than the entity model?

983


what is msl?

1041


Explain peek method in tempdata in asp.net mvc?

1127


What is the difference between renderaction and renderpartial?

1148


What is domain class model?

1038


what is entity framework advantage?

1097


What is separation of concerns in asp.net mvc?

1145


Explain tempdata in mvc?

1004


How we can multiple submit buttons in ASP.Net MVC

1159


What are the 3 main components of an asp.net mvc application?

1041


Where is tempdata stored?

980


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

1096