.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

Error when Customizing Newform.aspx for Discussion Board ('A Folder with the name {0} already exis

Posted By:      Posted Date: October 07, 2010    Points: 0   Category :SharePoint


On WSS 3.o I have created an out-of the box Discussion Board called 'dd'. I need to Cusomize the NewForm.aspx.  As noted in numerous online articles I deleted the existing ListFormWebpart and inserted a new DataFormWebpart based on the discussion Booard. I didnt Modify the DataFormWebpart  in any way.

I save  the Newform.aspx, browse to the Discussion Board and create an Item with Subject 'Test'. All is good. But when I go to create a second Item With A subject of 'Test" I get an error saying  'A Folder with the name Lists/dd/Test already exists.

If I use the DataFormWebpart  I am allowed to create discussions with the same name , but if I switch to A DataFormWebpart  I am not.

Is this a known issue? Are there any work-arounds?


View Complete Post

More Related Resource Links

Modifying Customizing EditForm.aspx of Doc lib breaks Upload function - Unknown Error

Part of a bigger design issue really. But does anybody know why customizing EditForm.aspx of a Doc lib breaks the Upload function? and how to fix it so it does not. My version of the editform works great, but after an upload I get Unknown Error the resulting url looks like this: https://xxxxx.edu/sites/xxxx/_layouts/Upload.aspx?List=%7b0404432B-91A3-4E18-9202-5954E3A7E0D2%7d&RootFolder=%2fsites%2fmcpharm%2ftest3&Source=https%3a%2f%2fxxxxx.edu%2fsites%2fmcpharm%2ftest3%2fForms%2fAllItems.aspx --- The bigger design issue - disregard if you like: That said, the bigger design issue is we are trying to relate one list row to many documents, but don't want to seperate the docs into seperate folders and would like the solutoin to be seamless. We are going to add a look up from the doc lib to the list, but did not want to use anythng but the List's ID column. However, we do not want users to have to manually look up List row IDs in that form, and we did not want to use a list column that can be edited, even if we can add a unique column policy. My design and thinking is to build a few custom pages with dataviews to show row level details in both lists (1 to many) and a dataview to drive list level functions like edit, delete and upload docs. I think all the pieces are there except for the less than graceful upload function that fist uploads the file and then asks the

MOSS 2007 Discussion Board reply error

Created a standard webpart Discussion Board and can add discussion items OK but when tried to reply to item got error 'The page cannot be displayed'. After several attempts eventually worked when the item description was only 4 characters or less. looking at the response URL it appears to be excessively long, some elements seem to be repeated in the URL string e.g. https://xx.xxxxxxx.com/theworks/OandR/TDMBE/Lists/Discussion%20Board/NewForm.aspx?RootFolder=%2ftheworks%2fOandR%2fTDMBE%2fLists%2fDiscussion%20Board%2fhave%20consultants%20got%20enough%20supplies&ContentTypeId=0x0107&DiscussionParentID=2&Source=https%3A%2F%2Fxx%2Exxxxxxx%2Ecom%2Ftheworks%2FOandR%2FTDMBE%2FLists%2FDiscussion%2520Board%2FFlat%2Easpx%3FRootFolder%3D%252ftheworks%252fOandR%252fTDMBE%252fLists%252fDiscussion%2520Board%252fhave%2520consultants%2520got%2520enough%2520supplies%26FolderCTID%3D0x01200200A1C51FB6047510439F93B774F153C4CB%26TopicsView%3Dhttps%253A%252F%252Fxx%252Exxxxxxx%252Ecom%252Ftheworks%252FOandR%252FTDMBE%252FLists%252FDiscussion%252520Board%252FAllItems%252Easpx   Does this suggest that the URL length is the root of the issue. The users are using IE6 also. If i connect directly onto one of the front end web servers and try to do a reply then it works as expected and response URL is much shorter i.e.   http://servername/theworks/OandR/TDMBE/Lists/Discussion%20Boar

Access Classes in an aspx page that is in folder in asp.net


I have classes in App_Code:
Connection.cs, ClientData.cs ....

I have a folder Authenticated within it have an aspx page Client.aspx

How do I access the page through Client.aspx ClientData.cs the class, because there is a mistake for me to define the class as I do, please help me!

Profile Pictures not displayed in Discussion Board in SharePoint 2007

Picture Placeholders are displayed instead of Profile Images in Discussion boards in MOSS 2007 but when you click on the user, their pictures appeared in MySites, also with Search People. How to fix this?!

Discussion board template of SharePoint 2007 not working properly


Use case 1 – Discussion board to suggest change to documents

 User adds a suggestion. The discussion board needs fields like module name, document name, section name and reason for a change etc.


 Problem 1 – When I try to add fields to the discussion board – When a user wants to post a reply to a suggestion, user screen shows the new item form and all fields instead of just a reply or comment field. Need help how can I ensue user only sees reply or comment field?


 Problem 2 – If I make these changes in the discussion board template through SharePoint designer 2007 and later if we plan to upgrade to SP 2010. Do I have to redo the changes I did on old discussion board or will upgrade take care of migration of the changes to new discussion board template available with SP 2010? 




Getting user control in NewForm.aspx of the list


I have designed a user control where i have placed some custom fields as per my requirement now my next step is as soon as user clicks 'Create' under Site Settings it should take him to my user control page instead of Newform.aspx default page of the list.Just let me know your suggestions to achieve this as it would help me a lot

Thanks & Regards,


how to hide/display controls in NewForm.aspx based on dropdown value in SharePoint list



I have 1 dropdown in my sharepoint list with other columns. If dropdown value equal to 'xyz' i need to display some other controls, otherwise these controls should be hidden.

I know we can achieve this with javascript. If any one can provide code or sample then it will be appreciated. or is there any other alternative methods to do this ........

Thanks & Regards, Neerubee

Sharepoint discussion board


I am using content approval in a discussion.

The problem is: whenever administrator approves a pending post then Admin`s image replaces post creator`s image.


I want to display the image of post creator (or who reply a  post) not the image of last modifier image.

can't to insert value to EXCEL folder get error

Hi Can't to insert value in EXCEL folder get error   The Microsoft Jet database engine could not find the object 'Sheet1$'.  Make sure the object exists and that you spell its name and the path name correctly.   there is a code      The Microsoft Jet database engine could not find the object 'Sheet1$'.  Make sure the object exists and that you spell its name and the path name correctly. {        string sConnectionString = null;     sConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source='C:\\Users\\12.xls';Extended Properties=\"Excel 8.0;\"";        System.Data.OleDb.OleDbConnection objConn = new System.Data.OleDb.OleDbConnection(sConnectionString);        objConn.Open();          //Add two records to the table.        System.Data.OleDb.OleDbCommand objCmd = new System.Data.OleDb.OleDbCommand();        objCmd.Connection = objConn;        objCmd.CommandText = "Insert into [Sheet1$] (FirstName, LastName)" + " values ('Bill', 'Brown')";        objCmd.ExecuteNonQuery();        objCmd.CommandText =

Workflow for Discussion Board

I am using content approval in my sharepoint discussion board. I want to create a work flow for a user so that user`s post could be publish without any approval of discussion board admin

NewForm.aspx - Show/Hide fields dynamically

I have about 20 + fields in a custom list.  I want to be able to show and hide fields depending on user selection.  Does anyone know a way of accomplishing this? Ive tried some embedded javascript but can't seem to get it working in sharepoint. Please help :)http://lbellows.blogspot.com http://www.ptreviews.net

Person.aspx 404 error

Hello all, New Sharepoint admin here, so please be gentle.  I'm trying to get the "My Profile" link to work in the upper-right drop down menu in our newly-installed Sharepoint 2010 site. I'm receiving a 404 error, likely due to the fact it's going to https://siteurl/Person.aspx?accountname whereas I'm trying to set it to go to https://siteurl/my/Person.aspx?accountname... I've followed a few guides on the internet regarding setting the MySite info in the "My Site Settings" of the User Profile Service Application. Currently I've got "my" in the Location field for "Personal Site Location," is this the proper place to change the url?  If I manually navigate to https://siteurl/my/Person.asx?accountname=domain\account the page loads without issue, the problem just seems to be getting sharepoint to go to that proper url. Any assistance would be much appreciated.  Pete

Connecting a Discussion board to Outlook

Hi, I'm working on an application which takes a mail from a mailbox and imports it as a discussion board item on a sharepoint site. I have no problem importing the mail to sharepoint. When connecting the discussion board to outlook I cannot see the items inside that discussion board, but if I create a new discussion board item from sharepoint I have no problem seeing that item in my outlook. I'm using the AddDiscussionBoardItem method from this site, to import the email to sharepoint. Thanks in advance. -Michael     

SharePoint ASPX Web Service Call Error

I have developed an ASPX page using VS2005. This page simply queries a SharePoint list through a WSS web service using CAML and takes the results and populates a DataTable and binds it to a DataView. The code works perfect using VS2005 but when I port it over to SharePoint I get the following error.Description: The application attempted to perform an operation not allowed by the security policy.  To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file. Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.The call stack is as follows:[SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]   System.Security.CodeAccessSecurityEngine.CheckNReturnSO(PermissionToken permToken, CodeAccessPermission demand, StackCrawlMark& stackMark, Int32 unrestrictedOverride, Int32 create) +0   System.Security.CodeAccessSecurityEngine.Assert(CodeAccessPermission cap, StackCrawlMark& stackMark) +79   System.Security.CodeAccessPermission.Assert() +37   Book2Physical.Requests.get_DataSource() +

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

Error customizing Approval Workflow in SharePoint Designer

When attempting to customize OOTB Approval Workflow, message "Workflow is read only?"  Request copy errors with "Server could not complete your request" Details button produces blank.  Any clue?  I am the site collection administrator for the site and the secondary farm administrator.

error provider control in aspx pages?

how can i add error provider control in an asp.net page using c#..  for example,if i am using a textbox control which prompts the user to fill it on clicking the submit button,how should i make the textbox control to prompt the user. someone help me with this!!! and also reply me if v can use status strip control in aspx pages
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