.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Customize edit page

Posted By:      Posted Date: April 10, 2011    Points: 0   Category :ASP.Net


I would like to customize Edit Page template.

Default Edit page makes DropDown control for each Foreign Column.

I would like to make an image next to drop down. When user would click on that image, the modal grid with data of foreign table would appear.

Then on select event of grid, the dropdown selected value would change with the one selected in modal (foreign) grid.


I tried to make that with changing the ForeignKey field template, but I have problems with postback.

I made modal grid with foreign table data, but when I filter, select, or do anything, that fires postback, the modal window closes.

I tried to fix that with function, that checks which control fired postback, and reshowing the modal window if the control was one of those on modal ...

After that, modal window showed up for every foreign key in current table.

So I think the right approach would be to change Edit page template.

If I put ModalPopupExtender + GridView ... and all other stuff on edit page, how can I than access this controls from field template?

I hope that someone can help me with this, because it is very hard to select foreign key value fro dropdown if foreign table has 5-10 columns and many rows ...

It's easier to select from grid -> lookup table.


Here is some of the code

View Complete Post

More Related Resource Links

Detecting Edit or Insert Page


I am coding a .cs file that handles the metadata for a particular table. I am putting a custom validation that allows me to update or insert only if the PubMedID is not already in the database. This would be easy except that the PMID should also be allowed to be null as some of the references in the database were not from PubMed. So i perform a query on the database to see if there is already an identical PMID in the database. This works great when using Insert. However, when using Edit, it does not. The PMID is already in the database because the one currently being edited has the same PMID!!! So I know exactly how to change my query etc. However, I do not know how to tell from inside this Edit/Insert agnostic page, which one it is being called from. Thanks for your help! 

Customize Read Only/Edit Dialog box

Is there a way to customize the dialog box that comes up when you click on a file to open it?  

The box goes as follows:

You are about to open:
How would you like to open this file?
Read Only

It always defaults to Read Only, but I'd like to default it to Edit. 

Any ideas?  Thanks.

How to Customize Navigation for a Wiki Page



I've created a wiki library with 10+ wiki pages. I want users to be able to move from page to page on the Quick Launch navigation bar without having to go back to the wiki library home. Is this possible? I see the "Recent Changes" quick launch navigation feature that seems to accompany all wiki pages in a wiki library. Can I add another component similar to the "recent changes" feature that simply lists all of the pages in the wiki library?



you do not have permission to do this operation. Whenever I try to edit a page in sharepoint designe


Hi There,

I keep getting the error message "you do not have permission to do this operation" in  sharepoint designer 2007 (WSS 3.0), whenever I try to edit a page in Sharepoint Designer.

I am a farm admin, site collection admin and site admin, after the error message I can click OK and enter the Administrator password which has the same priviliges as me and it thinks about it for 5 minutes then returns the same error, eventually after several hours it will allow me to save changes but it's about a 1 in 20 chance.

As it does save sometimes it would appear to me that somehow it is losing the connection or temporarily losing the credentials. Does anybody have a clue where I can start to find out a solution to this problem. I get the feeling that something is corrupted somewhere but I don't what to look for and where.

Any help, tips, ideas gratefully received.

Thanks in advance.


"Only their own" allows users to edit, then shows access denied page

I am managing a WSS 3.0 portal.  I have created custom lists where a group has contribute permissions.  Under List Settings|Advanced Settings, when I set Edit Access to "Only their own" or "None", my test users can see the Edit Icon and the Edit Item menu option, and bring up the Edit Form.  When they click "OK", they get the Access Denied page.  My experience in that past is that they should not even been shown the option to edit, and they should get Access Denied if they somehow navigate to the EditForm.aspx page.  I even tested this on a brand new site, with three Links lists, each with different Edit Access Levels (All, None, Only their own).  I added one user with contribute permissions.  He had the same result: He could get all the way to EditForm.aspx, but got "Access Denied" when he submitted his changes.  What can I do to fix this?Christopher W. Douglas

Customize the User Profile page

I need to add a "link" or "button" to the User Profile page (userdisp.aspx).  In SP2007, I had a custom feature that would forward the user to a custom aspx page, but that doesn't appear to work in 2010.  Is there a recommended method of customizing the User Profile page in 2010?

not able to edit page when moved site to a new farm

Hi, I moved my site to a new farm. Now when I tired to edit the page I am getting Page error. I thought its a page layout url issue. I found some broken links for that web site in sharepoint designer, but some pages are giving error which are not listed as a broken url. what should i do to fix this problem? can anybody help me please?    

Edit filter settings in a mobile page

hello, how can i edit list filters using schema.xml in SP 2010 on a mobile page ?  thanks

Edit List Title on a Mobile Page

hello, i want to know if i can edit the title which the item is displayed on a mobile page e.g "New Task for Job No 2", can i edit the way its displayed? e.g can i add to it the start/end date also ? e.g "New Task for Job No 2 StartDate:current EndDate:current". thanks

Custom Edit form - close modal dialog and navigate to page

Hi, I created one custom edit form for my document library, replaced default save and cancel buttons with input buttons and added the form action to them. Then I set my page as default edit form. When I click edit button, my custom form opens in modal pop up. When I try to save the item by clicking new save button, item gets saved but pop remains as it is. Now, I want the modal pop up to get closed and navigate to page other than the parent page with some parameters after I click save button. How can I achieve this? Thanks!!

Unable to Edit or Create Page under new subsites Moss 2007

I have created new subsites and trying to create a page, but it shows access denied error. Eventhough i have logged in as site collection administrator and given access as full control for subsite and also tried giving master page and style library read access. when i click on create page, I can enter the page name and after that it shows ACCESS DENIED . but the page is physically created and unable to edit.... Appreciate your help on this Issue....    

Full Control users only able to edit Shared Version of page in MOSS 2007

Hi, In MOSS 2007 we have a site collection that does not allow the owners to edit pages. There is no broken inheritance in the permissions, and when a user clicks "Site Actions" and then "Edit" they get a toolbar saying they are only editing the Shared Version of the page. No pages are checked out to any other users either and the users attempting this (including the Farm account) are not able to edit these pages. What would be the next steps to debugging this problem as it is not one I have encountered previously?  

unable to Edit Page in newly created subsites Moss2007

I have created new subsites and trying to create a page, but it shows access denied error. Eventhough i have logged in as site collection administrator and given access as full control for subsite and also tried giving master page and style library read access. when i click on create page, I can enter the page name and after that it shows ACCESS DENIED . but the page is physically created and unable to edit.... Appreciate your help on this Issue....      

Unable to edit a wiki page

Few users who have the full control permissions inherited from the top site are able to create a wiki site (as expected), but when they try to edit the wiki content on the page of the newly created site, they get a permission error (unexpected).  Not all users have this problem.  Another user who belong to  the same people group is able to edit the page without any problem (wierd).  Given below is the error message You are not authorized to view this page You do not have permission to view this directory or page due to the access control list (ACL) that is configured for this resource on the Web server Please try the following: Contact the web administrator if you believe you should be able to  view this directory or page.   Unfortunately, I am that web admin.  No clue what could be wrong.  Please advise. We are using MOSS 2007 single server installation on windows 2003 server SP2 enterprise edition with SQL server 2005 as back-end. Authentication Type: Windows IIS Authentication setting: integrated Windows authentication - NTLM Anonymous access - disabled. Thanks.

Foundation 2010 Edit page error

Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729) Timestamp: Tue, 25 May 2010 17:55:02 UTC Message: 'SP.Ribbon.PageState.ImportedNativeData.PageState' is null or not an object Line: 2 Char: 79472 Code: 0 URI: http://zynxsp/_layouts/sp.ribbon.js?rev=F%2BUEJ66rbXzSvpf7nN69wQ%3D%3D  

I am a Site Administrator, but I do not see Site Settings or Edit Page menu from Site Actions

Hi, I have been using MOSS for over 2 years, but I have not even heard or seen this kind of situation. I am a Site Administrator, but I do not see Site Settings or Edit Page menu from Site Actions menu, and I typed in http://mysitecollection:portnumber/_layouts/settings.aspx to go to setting page manually and looked around there. I confirmed that I am the site administrator, but when I go to Advanced Permissions, I do not see any checkbox beside each users. So basically, I am a Site Administrator on the site, but I am really NOT! What is going on here!? 

Refresh Parent Page List after Edit Item Modal Dialog Save/Close

I am calling the Edit Item URL (EditForm.aspx?ID=x&IsDlg=1) via javascript code to bring up the Edit Item Modal Dialog. This works fine and dandy. But what callbackfunction should I invoke after the Save so that the parent list is refreshed? Is there a better way to do it than call reload on the entire parent frame? It almost looks like there should be a way to refresh just the list. Any help appreciated. Thanks, Jake.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend