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

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

SPList.Forms collection crashed, missing NewForm and EditForm

Posted By:      Posted Date: August 26, 2010    Points: 0   Category :SharePoint


I accidently deleted the NewForm.aspx and the EditForm.aspx. This causes the Sharepoint server to remove the binding from the list to the forms. I read a lot about this problem and that many people are having problems with that.

The SPList object of my list contains a collection named Forms which should contain a List of the 3 forms (Disp, Edit, New). This collection now only contains 1 item(this must be the dispform item). How can I add the other items to this list programmatically?

Thanks for answers!

View Complete Post

More Related Resource Links

SharePoint 2007, Modify Tooltip Text in SharePoint forms: EditForm.aspx and NewForm.aspx

I have a list in SharePoint that was created awhile back.  The names assigned to some of the columns in the list are no longer relevant.  Due to existing code, the column names cannot be modified to reflect the preferred names.  I was able to change the lables assiciated with these fields within forms NewForm.aspx and EditForm.aspx.  All looks and works just fine except for when the curser lingers in one of these fields, the tooltip that appears contains the underlining (original...no longer relevant) column names.  This is confusing to the user since the name within the lable and the tooltip are different.  I would like a way to either disable the tooltip from displaying or to modify it to display a custom value.  Below is the code from behind the form as it appears in Sharepoint Designer.  I would appreciate some input on this. <SharePoint:FormField runat="server" id="ff11{$Pos}" ControlMode="Edit" FieldName="My_x0020_Field_x0020_Name" __designer:bind="{ddwrt:DataBind('u',concat('ff11',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@My_x0020_Field_x0020_Name')}"/> <SharePoint:FieldDescription runat="server" id="ff11description{$Pos}" FieldName="My_x0020_Field_x0020_Name" ControlMode="Edit"/>

Office Sharepoint Server Publishing Infrastructure is missing in site collection feature SharePoint

I was trying to activate the Office Sharepoint Server Publishing Infrastructure feature in the site collection features but the feature is simply not there. Is this option not available in SharePoint Foundation 2010?

redirecting from EditForm.aspx. to NewForm.aspx directly


Hi All,

My Requirement is...

I have two lists. List "Project Request" and "Project List". When I am upading a item from "Project Request" list in EditForm.aspx. After clicking on the ok the aplication should redirect me to NewForm.aspx of ProjectList.

I have checked in so many blogs it can be achieved through EventReciver only. But not able to ressolve how to achive.

Please help me with code snippet.

Thanks in Advance.....


Sharepoint Designer 2007 - Workflows stopped and can't create custom NewForm or custom EditForm


Everything was working great until the last few days when I made the SP site more robust. I am now ready to create a custom New Form so that my "requestor" doesn't have to deal with all of the fields. I want to create a custom Edit List so that I can hide all of the flags that get tripped while completing workflows. This morning I tried to create the NewForm (as I have done in the past) but nothing loads. I tried creating it with a different list, and it loaded fine so I know it has something to do with my list. I tried executing workflows so that I might be able to narrow down the problem, but now no workflows work even though they did a couple of days ago.

One of the items added as a "pause until" workflow. I don't know if that has anything to do with it or not. I also have roughly 85 fields. I haven't seen anywhere on the blogs that the number of fields is an issue but you never know.

Can anyone help? Please?

Missing "SharePoint Server Enterprise Site Collection Features" in Site COllection Feature



All collection sites seem to be missing on the "SharePoint Server Enterprise Site Collection Features" in Site COllection Feature. However, I have PowerPivot uninstalled and reinstalled. Not sure if this could be the reason for it.


Removing fields from dispform, editform, newform



I have a list instance that uses a custom content type that's derived from the "Event" type.  The event type has a "location" field that I'd like to hide in all views of my type, but it is currently displayed in the New form, the Display form, and the Edit form (and everywhere else, but these are the most important to me).  I tried setting the ShowInEditForm and ShowInDispForm (etc.) attributes to false for this field in schema.xml, but there was no change when I redeployed.  I didn't see anywhere else that I could try to affect the fields that are shown in the new/display/edit forms.  How can I remove this field?










How do I customize the item forms (NewForm.aspx, etc) in VS2010?

I have a SharePoint 2010 solution in Visual Studio 2010.  I have custom list definitions, instances, etc.  I want to customize the New, Edit, and Display forms for my custom list.  I not only want to customize the look, but I want to write my own code behind as well.  I have searched all over and have yet to find a good guide on how to do this.  Can someone please help?

Forms Authentication Cookie not showing up in Request.Cookies Collection


While migrating my ASP.NET 1.1 application to 2.0, I've noticed something very odd that I can't explain:

When a user is authenticated via forms authentication, the forms authentication cookie is visible in the application trace (both in the httpheaders and the request.cookies section).  If I view the request.cookies collection using code in the application, I see the forms authentication cookie in the collection (as well as a "control" cookie I added for comparison).

If I log out of the application, the forms authentication cookie is gone and is not viewable anywhere (as expected).

Here's what's strange: When the login session of an authenticated user expires after 5 minues, the forms authentication cookie is still present.  This is expected as it is a non-persistent cookie and should remain in memory until the browser is closed.  When viewing the trace information, I see the forms authentication cookie in both the http headers and the request.cookies collection.  However, when I view the request.cookies collection from within the application using code, it is NOT there.  (The "control" cookie is, as expected)  I even took the step of reading the cookie in through javascript, and that does in fact work.

I've gone over this for hours using many

Want to create a content type with its own Newform.aspx,editform.aspx,allitems.aspx by means of wiza



The wizard then creates a solution on visual studio. The code behind will write generic code for updating/adding into sharepoint.i is there a wizard which will create content type with individual aspx ? If there is a wizard utility which prompts you for fields and field types and then it will create code behind for the aspx.
With this done I can go at the code behind and ammend to put more logic. 


Routing for Web Forms in ASP.NET 4.0

posted a prototype demonstrating how one could use Routing within Web Forms. This is something you can do today with ASP.NET 3.5 SP1, because of the work we did to separate Routing from ASP.NET MVC. I would have liked to include Web Form Routing as part of the Routing feature when we were working on SP1, but we didn't have the time to do so in a robust manner before SP1 was locked down.

Application Architecture in Windows Forms 2.0

Applications have special support in Windows Forms. For starters, you can manage and tailor your application's lifetime, and, when the work flow is disrupted by an unhandled exception, you can choose from several methods of response. Then, there are several application models that you can employ, including Single Document Interface (SDI) and Multiple Document Interface (MDI) applications, each of which can support either multiple-instance or single-instance mode, the former the VS05 default and the latter requiring special consideration. All applications, however, can discover and use a wide variety of information about the system and environment they execute in.

Application Architecture in Windows Forms 2.0-Single-MDI Applications

Consider an MDI application like Microsoft Excel; files opened from the file system (by double-clicking) are all opened as separate child windows within the parent Excel window.7 For the first instance of an MDI application to open a new child window to display the file that was passed to the second instance of the application, the second instance must be able to communicate with the initial instance.

Explained: Forms Authentication in ASP.NET

This module explains how forms authentication works in ASP.NET version 2.0. It explains how IIS and ASP.NET authentication work together, and it explains the role and operation of the FormsAuthenticationModule class.

Using Forms Authentication in ASP.NET - Part 1

Classic ASP developers often had to "roll their own" authentication scheme, however, in ASP.NET much of the grunt work has been taken out. This article outlines how things have changed and how FormsAuthentication can be used to secure a Web site with a minimal amount of code.

ASP.NET Forms Authentication - Part 1

Often, in legacy Web applications, users authenticate themselves via a Web form. This Web form submits the user's credentials to business logic that determines their authorization level. Upon successful authentication, the application then submits a ticket in the form of a cookie, albeit a hard cookie or session variable. This ticket contains anything from just a valid session identification access token to customized personalization values.

ASP.NET forms authentication with roles

.A timeout is specified in minutes. This is "time since last request" not the "time since login". If a login is indicated to be persistent (described later) this is ignored.
.A protection method is specified for the cookie.
Next I wanted to specify a folder to which access is restricted to people who have logged in. To do this I entered the following code in the web.config file (beneath

Forms Authentication in ASP.NET

In this tutorial you will learn about Forms Authentication in ASP.NET 2.0 - Forms Authentication class, Cookie Domain, Forms Cookies, The Login Control, Signin, Signout, Authenticate, Redirect, Login Status, Login Name and Login View Controls.
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