D
David Thielen
Hi;
I want to have a page where Datasource.aspx means create a new datasource
and Datasource.aspx?ID=5 means edit the datasource who's PK is 5.
I am not using a GridView or DetailsView for this data - there are a bunch
of dependencies so I have to just put in a bunch of form fields.
1) How do I best initialize all the fields when it is first called with ID=5?
2) How do I best tell the user if ID=5 and there is no record with a PK of 5?
3) If they come to the page once with ID=5, then type in the url
Datasource.aspx (no ID) - how do I handle this to turn it into a create? The
form appears to still be populated with the old values.
I want to have a page where Datasource.aspx means create a new datasource
and Datasource.aspx?ID=5 means edit the datasource who's PK is 5.
I am not using a GridView or DetailsView for this data - there are a bunch
of dependencies so I have to just put in a bunch of form fields.
1) How do I best initialize all the fields when it is first called with ID=5?
2) How do I best tell the user if ID=5 and there is no record with a PK of 5?
3) If they come to the page once with ID=5, then type in the url
Datasource.aspx (no ID) - how do I handle this to turn it into a create? The
form appears to still be populated with the old values.