Wrox Programmer Forums
|
ASP.NET 4 General Discussion For ASP.NET 4 discussions not relating to a specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 4 General Discussion section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 14th, 2011, 05:18 AM
Authorized User
 
Join Date: Aug 2011
Posts: 14
Thanks: 1
Thanked 0 Times in 0 Posts
Thumbs down Repeater Issue

Hi,
I am using repeater to show some data from database...
cud u tell me how to access its rows values, coz i want to retrieve it from repeater row and then save into a new table...
I mean if my repeater has 3 rows
Student name, rollno, attendance
then i want to take roll no from it and save it into attendance table....
 
Old August 14th, 2011, 03:06 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi Emma,

By design, Repeaters display data in a read-only way. You could make them editable by embedding controls and accessing their values after a postback, but this is quite a bit of work. I would look into the ListView or GridView controls as they support editing out of the box.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
The Following User Says Thank You to Imar For This Useful Post:
Emma Krystal (August 15th, 2011)
 
Old August 15th, 2011, 06:33 AM
Authorized User
 
Join Date: Aug 2011
Posts: 14
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Hi Imar,
I am thankful to your idea.....

Yep I embedded it wd labels and checkbox, so that i cud access its row....

Thanks
emma
:-)
 
Old August 15th, 2011, 07:40 AM
Authorized User
 
Join Date: Aug 2011
Posts: 14
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Hi Imar,
I am thankful to your idea.....

Yep I embedded it wd labels and checkbox, so that i cud access its row....

Thanks
emma
:-)





Similar Threads
Thread Thread Starter Forum Replies Last Post
ManageUsers Repeater issue Antilles128 BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 8 March 3rd, 2008 11:47 PM
Repeater chiraagb ADO.NET 1 May 31st, 2004 02:35 PM
Repeater collie VB.NET 2002/2003 Basics 1 December 2nd, 2003 05:30 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.