.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

SharePoint FormToolbar and Delete - after delete page redirects to a non-existant address

Posted By:      Posted Date: September 21, 2010    Points: 0   Category :SharePoint
hi all,
i have a custom list and in the EditForm.aspx i have the typical SharePoint:FormToolbar.  this has only two props set : runat=server and ControlMode="Edit".   when we press the delete button on the toolbar to delete an item from the list it deletes it but redirects to the root site /_layouts - where we get an access denied error.

I tried adding the RedirectURL property to point back to the EditForm.aspx but when i do that the Editform will not even load - stating an error "Form control does not have ControlMode set".

Anybody have any idea how to get this thing to redirect to a page i have already? 

thanks in advance,


View Complete Post

More Related Resource Links

Delete Page Layouts and Master Pages in SharePoint 2010

Hi I want to delete unwanted Page layouts and master pages in share point 2010. I tried to delete the steps mentioned below as like MOSS 1.Create a New folder 2.Move the page layouts to that New folder 3.Delete the New folder But this approach also failed.. please suggest me to delete... Thanks in Advance ArunWith Love

Sharepoint delete groups


How do I delete groups from companyweb ?


Thank You

unable to delete a column from library in sharepoint 2007

Hi When deleting  any column in document library we are getting the below error Unable to validate data.   at System.Web.Configuration.MachineKeySection.GetDecodedData(Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Int32& dataLength)    at System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) Also tried to hide/remove the search content place hoder in master page but nothing works. Removed our custom master page with default master page still no changes are being observed. Thanks & Regards. Prerna

Can not delete large sharepoint site

Hi, I'm wondering if anyone can suggest how I can get rid of a large site (over 10 G) which we don't need anymore. When I try to delete it from the Settings.aspx page I guess process get stuck somewhere - progress bar just sit at around 25% for an hour. When I cancel out of the delete page - I find the site structure is intact. No clue in the ULS logs - all it says deleting that particular site.... The worse thing is that it makes the whole portal inaccessible...probably due to slowness. I even tried thorugh the STSADM deleteweb command - same result. I then thought it would be better deleting the whole site collection where that particular site belongs to from the Central Administration. No luck....when it takes the site down I see many different types of application log warnings (1309, 2262) and errors (5586, 6398).  I found another similar posting here - but really want to avoid the answer from that (I explained why at the end of that post). I'm hoping anyone else can suggest me a way to delete this site. Also any suggestion how long it might take to delete a site of that size? This is a MOSS 2007 farm with SP2 applied and SQL server 2005 at the backend. Thank you in advanced!  

Retracting feature which deployed custom master page delete default.master

Hi, I am not sure if solution to this issue is already posted? I have my feature which copy my custom.master which is copy of default.master from hive to master page gallery of web. The problem is that everything works fine with feature activate and deactivate but when I retract the solution from the server. All pages except site settings page stop working saying "file not found". I redeploy the solution, it starts working again. Looks like the retract is deleting default.master as well? I have this issue in 2010 as well. Any help will be appreciated. Thanks, Kashish

Field type Choice is not installed properly. Go to the list settings page to delete this field.

Has anyone received this error message and know how to deal with it? Field type  Choice  is not installed properly. Go to the list settings page to delete this field. I have received this error three times now, once when trying to add a 'List Definition From Content Type' in Visual Studio twice when trying to add from existing site columns in Sharepoint in the list settings and library settings from the ribbon from a list and a document library.

How can i delete the file uploaded in my web page?

 Hi Experts. I am writing a simple web page that  users can upload an image file. After the file is uploaded, Users can fill up  other question in the web page. then users click the submit button to register them and the file is uploaded previously is move to special folder and is saved there. Know i want to delete the uploaded file if the user upload the file but dont click the submit button and close the web page. because i dont need the file uploaded until the user is not registered. I use Session_End event but i dont know why it dont work. With Regards. Mojtaba

what happens with the sharepoint documents of a concrete user when you delete his user account DA

Hello, I need remove a user account from Active Directory. I don't know exactly what happens with the documents uploaded in sharepoint (on both parts, the general part and "my site") by a concrete user when I remove its user account from the Active Directory.   Thanks in advance.    

Delete specific permissions programatically in Sharepoint 2010

I have created a windows application to create custom permission levels(4) in sharepoint 2010 for deployment purpose of our sharepoint site. I am able to create custom permission levels(4) successfully. My requirement is, each time when I run this windows application, I need to check whether those 4 custom permissions levels already exists or not and if they exist, I need to delete those 4 permission levels and recreate them. How can I check whether the site contains these permission levels already and it contains them, how can I delete those 4 only and recreate them?

Unable to delete groups in SharePoint Foundation 2010

I have a test group I created in SharePoint that I want to delete (I'm the only user in the group). In the "People and Groups: All Groups" screen I click the edit icon next to the group and then click on the "Delete" button and ok the following warning dialog. However, the group doesn't get deleted. Any idea why this is happening and how to finally delete this group? Thanks.

Unable to delete a "Web Application" In sharepoint central administration


Hello All..

I am struck here with a peculiar problem I have created a new web application to work with.

And now i want to delete that but sharepoint is not enabling some icons in ribbon like delete option.

Please enlighten me how can I delete that web application.

Save/Update/Delete Sql Server data base table using Sharepoint Designer


Can some one help me to achieve below task

Save/Update/Delete Sql Server data base table using Sharepoint Designer.

automatic delete finshed Task in sharepoint 2010



i need to have task delete,then task is finshed.
Is it possible to have them automaic deletet after users have finshed them in sharepoint 2010.



delete user profiles sharepoint 2010



I got an unusual issue with SharePoint 2010.  We use SharePoint as an external Client portal using FBA login authentication.  We have close to 2000 users on this portal.  28 of these users show up with i:0#.f|fbamembershipprovider| in its username and these 28 accounts cant login.  I can't seem to find where they are in the database or how to remove or fix these logins.  Anyone have a suggestion?

how to do checkin,checkout,undocheckout,delete operations for sharepoint 2007 document library file


i hope your understood my problem...

please suuggest me with your coading skills.....

thanks & regards



How to create a custom content type with own custom view ,add, edit and delete form in sharepoint fo


How to create a custom content type with own custom view ,add, edit and delete form in sharepoint foundation server 2010 using visual studio 2010?

I donot want to use default form "form.aspx".

we can use my custom form in place of "form.aspx"?

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