Table structure is as follows:
id int identity
firstname varchar(100)
lastname varchar(100)
I have an detailsview control that displays/inserts/updates firstname lastname on profile.aspx page.
If customer lands on this page with id in querystring then I want it to load that record into detailsview via sqldatasource and have edit button enabled.
If customer lands on this page with out id in querystring then I want it to display blanks for first/lastname record into detailsview via sqldatasource and have insert button enabled.
How do I accomplish that???
Please help...