Solved

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

Posted on 2011-02-11
1
288 Views
Last Modified: 2012-05-11
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.

0
Comment
Question by:crdn_dan
1 Comment
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 500 total points
ID: 34878149
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

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question