PDA

View Full Version : updating, deleting records in ASP.Net


BLeary
03-29-2005, 04:48 AM
Hi,
I have info on a form that I would like a user to be able to go in after the fact and edit if they need to (ie - user account info). I know how to update and delete records using a datagrid, but using a datagrid wont look to good. I want it to look like the form that a user originally submitted only with edit functionality. I have all the form info stored in a SQL Server database. Would a using a repeater work ? any tips on how to do this would be greatly apreaciated. Also, I noticed you could edit this post. Something like this is what I need to do.
Thanks
Brian

bruce
03-30-2005, 02:38 AM
hmmm..

using a datagrid is probably the best bet.

Bruce

DiscountASP.NET
www.DiscountASP.NET (http://www.DiscountASP.NET)

BLeary
03-30-2005, 06:08 AM
after doing a little more research, the repeater wont work because it doesnt have the editing capabilities of the datagrid or the datalist. I'm going to try the datalist because I want more flexibility with how the data looks.In the datagrid, I believe you can only show data horizontally where in the Datalistyou have more flexibility.

I'm just curious, in this forum you can edit your posts. What control is used for this functionality ?
Thanks
Brian

bruce
03-30-2005, 07:45 AM
brian,

this is a commercial product and we are not familiar with the code.

Bruce

DiscountASP.NET
www.DiscountASP.NET (http://www.DiscountASP.NET)

BLeary
03-30-2005, 08:48 AM
I found a good site with examples of how to do what I want.
for anyone interested the site is
http://www.superexpert.com/default.aspx?id=242

Its full of examples on how to edit records via a datalist or a datagrid.
Thanks
Brian

diltonm
03-31-2005, 04:59 AM
Another good one is www.datagridgirl.com.