Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / February 2006

Tip: Looking for answers? Try searching our database.

2.0 : write handlers

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
John A Grandy - 16 Feb 2006 19:41 GMT
ASP.NET 2.0 : C# : How do you code the handlers for control events ?   I
read that explicitly adding delegates pointing to a handler method is no
longer necessary.

So what is the new way ?
tdavisjr - 16 Feb 2006 20:02 GMT
If you have a <asp:Button id="button1" runat="server" /> then in your
code behind class you can handle the buttons click event by using:

ControlName_EventName(object sender, EventArgs e)

i.e.

button1_Click(object sender, EventArgs e)
{
  //do someting
}
DWS - 17 Feb 2006 01:16 GMT
Select the control and the event in drop down list in IDE code editor window.
Good Luck
DWS

> ASP.NET 2.0 : C# : How do you code the handlers for control events ?   I
> read that explicitly adding delegates pointing to a handler method is no
> longer necessary.
>
> So what is the new way ?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.