Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
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....
Reply With Quote
  #2 (permalink)  
Old August 14th, 2011, 03:06 PM
Imar's Avatar
Wrox Author
Points: 66,755, Level: 100
Points: 66,755, Level: 100 Points: 66,755, Level: 100 Points: 66,755, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 16,145
Thanks: 65
Thanked 1,391 Times in 1,371 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!
Reply With Quote
The Following User Says Thank You to Imar For This Useful Post:
Emma Krystal (August 15th, 2011)
  #3 (permalink)  
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
:-)
Reply With Quote
  #4 (permalink)  
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
:-)
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 10:47 PM
Repeater chiraagb ADO.NET 1 May 31st, 2004 02:35 PM
Repeater collie VB.NET 2002/2003 Basics 1 December 2nd, 2003 04:30 PM



All times are GMT -4. The time now is 12:03 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.