I want to implement the following scenario...
Table related to this question is as follows:
ProfileID int (identity) FirstName varchar(100) LastName varchar(100)
step 1. User visits profiles.aspx page. Here in a grid view, he can see other people profiles. (I know how to do this.)
Step 2. User visits MyProfile.aspx page. Since his profile does not exist, details view, is blank with insert button enabled. User clicks the insert button and he can add his own profile only. (I dont know how to do this).
Step 3. Once users profile is added, it shows up on profiles.aspx page. He wants to update his own profile. He navigates to MyProfile.aspx page with ProfileID lets say 33. DetailsView is able to pull up his profile based on profileid and update button is enabled. (I dont know how how to do this.)
Could some one please help me with step 2 and 3. I dont know how to setup sqldatasource and detailsview to accomplish this.
Thank you in advance.