Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2011-02-11
1
Medium Priority
?
301 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 2000 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

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Question has a verified solution.

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

Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
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…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…

971 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