Hi Paul,
You can use the ItemCommand event of the list-bound control.
Please check this link for more information:
DataList.ItemCommand Event
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfSystemWebUIWebControlsDataListClassItemCommandTopic.asp
Hope this helps.
Best Regards,
Lewis
Get Secure! -
www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| From: "Paul Turley" <
[email protected]>
| Subject: How to handle events in template controls
| Date: Sun, 3 Aug 2003 08:03:55 -0700
| Lines: 10
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.3790.0
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Message-ID: <#
[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.aspnet.webcontrols
| NNTP-Posting-Host: ts46-03-qdr3731.porch.wa.charter.com 68.113.26.153
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.aspnet.webcontrols:13620
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webcontrols
|
| What's the best methof for handling an event for a control sitting on a
| template area of a list-bound web server control? For example, I have a
| couple of LinkButtons in the ItemTemplate of a DataList.
|
| --
| Paul Turley, MCSD, MCAD, MCT, MSF Practitioner, A+ Technician
| (e-mail address removed)_
|
|
|
|