Home All Groups Group Topic Archive Search About
Author
15 Mar 2005 6:11 AM
Mike Chamberlain
Hi.

Is there a built in control that can handle editing a single record?

For example, I can edit a single row within the context of a DataGrid,
but I want instead to be able to click an Edit button in the grid which
will then take me to a new page to edit the values for that record.  I
don't want to edit records inline as only a few summary fields are shown
in the grid itself.

I realize there are many third party tools that claim to do this, or I
could write it myself, but I wanted to know if there are any built in
solutions.

Cheers,

Mike

Author
15 Mar 2005 12:36 PM
Brock Allen
If you're using ASP.NET 2.0 there's the DetailsView and the FormView. They
both also support inserting new records. I don't know if one for ASP.NET
v1.x, so that's something we've traditionally had to build manually.

-Brock
http://staff.develop.com/ballen

Show quoteHide quote
> Hi.
>
> Is there a built in control that can handle editing a single record?
>
> For example, I can edit a single row within the context of a DataGrid,
> but I want instead to be able to click an Edit button in the grid
> which will then take me to a new page to edit the values for that
> record.  I don't want to edit records inline as only a few summary
> fields are shown in the grid itself.
>
> I realize there are many third party tools that claim to do this, or I
> could write it myself, but I wanted to know if there are any built in
> solutions.
>
> Cheers,
>
> Mike
>
Author
16 Mar 2005 10:00 PM
Jason Bentley
Mike, thanks to the WONDERFUL Dino Esposito, you can do this in ASP.NET
1.x. Here is an article on MSDN that he wrote for exactly this purpose:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/detailsview.asp

Jason Bentley
http://geekswithblogs.net/jbentley