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 iobjectset? : Entity framework

962


What is a model in programming?

948


What does mvvm mean?

911


Explain what is asp.net mvc?

1071


Please explain me what the project manager will ask in the interview.The interview is for senior position in .Net (5 years experience )

2898


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

975


What is .net framework in simple terms?

957


What is routeconfig.cs in mvc 4?

1069


mention what is csdl, ssdl and msl sections in an edmx file?

977


How to return the JSON from action method in ASP.Net MVC?

1161


what is entityclient?

1071


What is Peek method in Tempdata in ASP.Net MVC?

1079


What is net framework 3.0 ?

1039


Explain how you can send the result back in JSON format in MVC?

933


Can you explain the page life cycle of mvc?

943