controlling the mode of a page ( ie - want edit template display)

How is the display mode of a page dictated?  I've turned trace on and I have scanned server variables and etc. How is the server keeping track of wether I want the page in item or edit, etc?

My bigger question is I want to select from a gridview and launch my user to the "edit" view of a details view.  I see the different templates, but I fail to see how to control what is served.

crdn_danAsked:
Who is Participating?
 
Carl TawnConnect With a Mentor Systems and Integration DeveloperCommented:
By default the details view will show in read-only mode. You can change its default mode by setting the "DefaultMode" property of the details view:
<asp:DetailsView ID="MyDetailsView" runat="server" DefaultMode="Edit">
   ...
</asp:DetailsView>

Open in new window

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.