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

Posted on 2011-02-11
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.

Question by:crdn_dan
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
LVL 52

Accepted Solution

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">

Open in new window


Featured Post

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

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…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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.…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

688 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