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 child actions in ASP.Net MVC?

1060


Can I use razor code in javascript in asp.net mvc?

1156


When using razor views, do you have to take any special steps to protect your asp.net mvc application from cross site scripting (xss) attacks?

1342


what is use of entity container?

1053


What is the need of Action Filters in ASP.Net MVC

1095


Why we need a separate mobile project template, while we can render our web application in mobile ?

1147


What is the difference between adding routes, to a webforms application and to an mvc application?

1013


Explain two instances where routing is not implemented or required?

1048


What does mvvm mean?

954


What is the use of the default route?

1055


I want ask from plz smaple example code for Biztalkk server

2206


What is entitytypes? : Entity framework

1027


What is needed for running an application built on winfx on the .net framework 3.0?

954


How to change the action name in mvc?

986


What is the use of web api ? Why web api needed, if you have already restful services using wcf ?

1001