Hi there,
I'm a J2EE fellow who (as usual) has been thrown in the deep end and
have to learn a fair chunk of the .NET platform (VS, ADO, WebForms, C#
etc) in roughly two days. I'm doing ok so far, but am wondering on a
better way to do something...
Basically, I have a form which has a few fields the user fills in.
When submitted, the data is stored as a row in an SQL database table.
Then, I have another page which lists all the rows from that database
in tabular format. I use a DataList to do the displaying.
What I want to do is to have an "Edit" link next to each row which
will then go back to my original form, with all the fields populated
with the current values. The user can modify them, and re-submit.
I fiddled with the EditTemplate for the DataList but that's not what I
wanted - it seems to allow editing directly on my viewing only page. I
want the user to be re-directed to the separate form page. In the end,
due to a lack of time, I basically called the page with a get query
(i.e. formpage.aspx?report_id=45) and used the queryString to get the
report_id unique value of the record I wanted the fields in my form
populated with.
Anyone have a better suggestion on how to do this?
Thanks everyone,
Mal