Hi Hans,
Welcome to ASPNET newsgroup.
As for the repeater control dosn't have select function or event, it is the
expected behavior since compared to the other two template databound
controls (DataList and DataGrid....), repeater is a very simple one which
dosn't encapsulate those advanced data manipulating functionalities(like
row selecting, editing , updating.... method and events....).
And from repeater to DataList to Datagrid, the data manipulation ability
increase while the displaying customization(html template) ability
decrease.....
So if we'd like to manipulate data rows bound in the template control, we
suggest use DataList or datagrid.... And if we just want to displaying
some data and need complex customzing on html template, repeater is the
prefered choice....
Thanks,
Steven Cheng
Microsoft Online Support
Get Secure!
www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| From: Hans Merkl <rh*****@newsgroups.nospam>
| Subject: How to know which element was selected in a repeater?
| User-Agent: 40tude_Dialog/2.0.14.1
| MIME-Version: 1.0
| Content-Type: text/plain; charset="us-ascii"
| Content-Transfer-Encoding: 7bit
| Sender:
rh*****@newsgroups.nospam
| Reply-To:
rh*****@newsgroups.nospam
| Organization: RHM Media, LLC
| Date: Sat, 10 Dec 2005 12:55:09 -0500
| Message-ID: <1i*****************************@40tude.net>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: pcp0011547978pcs.anapol01.md.comcast.net 68.54.166.32
| Lines: 1
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP14.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:364028
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Hi,
|
| I must be missing something here. In a DataList and DataGrid I can use the
| property DataKeys to identify the selected element and get to its values.
| But I can't find a way to do the same in a Repeater.
|
| Can anybody give me an idea how to this in a Repeater or point me to some
| sample code?
|
| Thanks
|
| Hans
|
|