.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

Multiple Custom EditForm's

Posted By:      Posted Date: December 04, 2010    Points: 0   Category :SharePoint

We had a site that needed to have two different custom EditForm.aspx pages. Each custom form was based off the original EditForm.aspx page (this is the recommended approach and can be done by saving "As"). One was set to be used as the default edit form (List Properties /Supporting Files tab).

The other form was to be accessed by modifying the address.

Suppose if the original editform url is:

To access other form change the address to:

View Complete Post

More Related Resource Links

How do you create a custom BDC data field that allows for multiple selected values?

I need help creating a custom data field using the BDC column as a base.  We need to allow for multiple selected values instead of just a single one.  I can't find anything on the net which shows how to do this.

Custom Editform.aspx crashes Sharepoint Designer

Hi there,

I've recently designed a sharepoint list and customised newform.aspx and editform.aspx. I made copies of the originals then customised the copies.
On both forms I simply:

* Closed original List Form web part
* Added Custom List Form
* Added some section breaks (<tr>) to the form to break it into sections
* Added a new css style to change the background colour on the section breaks (table rows)

Now NewForm.aspx works fine. However after making above changes in EditForm.aspx, I saved it. However whenever I try to reopen EditForm.aspx in Sharepoint Designer (SD), SD crashes! I can only open it in Text view. The error details reported by SD are:

Problem signature:
  Problem Event Name:    APPCRASH
  Application Name:    SPDESIGN.EXE
  Application Version:    12.0.6423.1000
  Application Timestamp:    49b09947
  Fault Module Name:    FPEDITAX.DLL
  Fault Module Version:    12.0.6423.1000
  Fault Module Timestamp:    49b098d3
  Exception Code:    c0000005
  Exception Offset:    0010b35c
  OS Version:    6.0.6002.
  Locale ID:    3081

Additional information about the problem:
  LCID:    1033
  Brand:    Office12Crash
  skulcid:    1033

I really don't know why SD is crashing. As a test I made a new

WCF Multiple Custom Assemblies in IIS7

Hi, I have a WCF service library that references a few sub-assemblies.  As an example, I have a service layer assembly and a business layer assembly.  When I attempt to deploy into an IIS 7 host, I keep getting the error: assembly 'business layer' could not be loaded.  Both the assemblies are in the bin directory and neither are in the GAC.  I'm trying to avoid introducing them there.  Is there somewhere in IIS or the web.config that I could update to tell it where to load the sub-assemblies? Please note that as a test, when I took out the reference to the business layer, the service compiled and was consumed by a test client successfully. Thanks, Kyle

Custom List Row association to multiple documents - Design choices?

I want to associate custom list entries to muliple documents. Thinking about options.   1 row will have many docs, but one doc will only have one row. Possible? Trying to keep it simple with minimal development. I was thinking I could have a unique column or the id column in the list act like a key (somehow).. and  add a required column to the document list requiring it to tie back to the list entry.  Then a view could drive listing all the docs for a particular row from a link in the list built in a custom dataview. All the docs could be in the same library. Is the the best approach? Ideas/suggestions? Thanks.

How would you handle this? Multiple instance of a custom class...


Forgive me if this isn't the appropriate place.

I have the following data.

10484	1	30	0.5011	0.4630	0.5254	0.0081	10.8362
10484	1	30	0.5061	0.4666	0.5363	0.0075	12.2901
10484	1	30	0.5051	0.4688	0.5383	0.0060	12.5718
10484	1	30	0.5064	0.4623	0.5352	0.0074	12.9344
10484	2	30	0.5035	0.4637	0.5371	0.0074	13.1082
10484	2	30	0.5092	0.4726	0.5397	0.0075	11.7046
10484	2	30	0.5051	0.4645	0.5368	0.0060	13.1261
10484	2	30	0.5062	0.4642	0.5392	0.0081	13.2161

 I am using the following class.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace CvasAdmin.Classes
  public class invitro
    public class invitroDetail
      // pk of the foxpro Dbf
      public double sampleid;

SharePoint Designer Workflow to email multiple recipients listed in a custom list


Hi all,

I created a workflow in designer attached to a form library. I also have a custom list "Admins" containing names of persons that serves a different purpose but would also like to be used as recipients for the workflow email everytime a new item in the form library is created.

I have been searching the net and tried out few work arounds but so far able to send to only one person in the "Admins" list. The list has a column "Admin Name" which is of type "Person or Group".

Thanks in advance!

Save button on custom EditForm.aspx locks record



I am having an issue with my EditForm.aspx on a list. My problem is that when I make a change to a record and click save (and it brings me back to the page), the first set of changes are saved fine but if I then enter more content and click save without refreshing the page I get the error:

 Save Conflict.

Your changes conflict with those made concurrently by another user. If you want your changes to be applied, click Back in your Web browser, refresh the page, and resubmit your changes.


This is the code that I am using for my save button:

<input type="button" value="Save Changes" name="btnFormAction" onclick="javascript: {ddwrt:GenFireServerEvent('__commit')}" style="padding: 5px; border-style: none; background-color: #21374c; color: #FFF; font-weight: bold; font-size: 14px;" />

 Is there something I need to add to my code that unlocks the record once it has been saved?

Thanks in advance for the help :)


How to pass multiple filter parameters to moss report viewer from custom filter provider


I have written a custom filter provider webpart which implements ITransformableFilterValues to pass parameter value to moss report viewer webpart.

However, this interface only allows to pass one parameter. Please can someone guide me through correct resource which allows my custom filter provider webpart to pass multiple parameters to report viewer. E.g if my report has 5 parameters then my filter provider webpart should allow me to make connection with report viewer and pass all 5 parameters.

Filtering on multiple items is disabling custom drill through actions

I am using Excel 2007 to connect to a SQL Server 2008 Analysis Services database.

I have defined a drill-through action that it works perfectly through Excel when I have selected only item selected in a filter in the pivot table. However, when I select multiple values in the filter the action doesn't even show up on right clicking and going to the Actions menu item.  The Actions menu item is disabled.

Is this an Excel bug?   Is there another way to set up the SSAS Action?  Why would selecting multiple items in a filter affect a drilldown action?

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?

custom editform.aspx with dataform webpart

we created a custom editform.aspx for a sharepoint custom list and added  custom list form/dataform webpart (insert-->sharepoint controls-->custom list form)  control
to the webpart zone and set the visibility of default "ListFormWebPart" to false.

some of the  form field controls (not required fields) are removed from the dataform webpart. we are able to open an item in edit mode using this custom edit
form and save the  list item.

The strange thing we noticed is that this edit form(editform.aspx) always opens in  EDIT mode (with page | Workflow | Tools | Save and stop editing)

links on the page(below the navigation control). though  "save and stop editing"  link is clicked the page is posting to the server but with no luck, still able to see those links.

We noticed this only with editform.aspx but not with Newform.aspx,displayform.aspx.

Environment: MOSS 2007 + SP2

Can a single form create multiple entrys in a custom Sharepoint list



I want to have a form where the user can specify how many items she wants to create for a custom sharepoint list? When submitting the form, that will start creation of X number of new items in a custom Sharepoint list.

Is this doable with forms?



Custom Form Field in Collect Data Action doesnot capture multiple users.


I have a situation where the department head dynamically assigns the reviewers depending on the document that is uploaded. To capture the reviewers I added a Collect Data Action and a "Reviewers" form field, with type "Person/Group" and checked the following properties

1. Allow selection od People and Groups, 2. Choose from all users and more importantly 3. Allow multiple users

Although I am able to enter multiple users in the form, I am able to retrieve only the first user I entered and the rest just.. disappear!

Dynamic Data. Multiple Custom Pages For The Same Table



I've just started out my first project using Dynamic Data and I've been running into a series of problems. Dynamic Data doesn't seem to be swimming in documentation. Anyway, my setup is:

  • Visual Studio 2010
  •  .net 4.0
  • Dynamic Data Domain Service Web Application Project Template (I have the RIA Services for ASP .net installed)
  • using an Entity Data Model
  • using a DomainService class
  • ASP .net Membership

There are a couple of things I am trying to achieve:

  1. I have my scaffolding turned on for all the tables. I am using the RequiresRole attribute in order to restric access to some tables. I have understood how you can create a Custom Page Template for a certain table, no problems there. I would like to be able to use the default PageTemplates for lets say the Administrator role and the Custom Page Templates for another role; the idea would be that the Administrator would be able to edit anything in the DB, but the restricted user would receive a Custom Page with only a few actions available. Long story short: is there a way to access both the standard and custom templates?
  2. Related to question number 1: Can I have multiple Custom Page Templates for the same table? I saw someone asking

    Multiple SharePoint 2010 web applications as relying parties of a custom IP-STS


    Hi everybody,

    The challenge I'm facing is that I've set up a small farm for a client and the solution consists of three web applications (mainly scalability). What I primarily want to achieve is single sign-on (for authenticating users accessing the site) between the web applications, using FBA. I haven't found a single source indicating that merely using forms login is the way to achieve SSO in SP 2010. Rather, everything points to using a STS.

    We might end up using ADFS 2 but for now I've built a custom IP-STS, based on Starter STS. The problems that have arisen are related to establishing trust between SharePoint and the STS. Of course I've configured a SPTrustedIdentityTokenIssuer with the proper certs and so on. As far as I can tell, I get redirected to the STS login form, get authenticated properly and redirected back to the calling RP.

    What happens next is that if I have multiple RP:s configured (that is, one default realm and one provider realm) in the token issuer, upon redirection back to the calling RP the browser is stuck in an endless redirection loop. I've tried to use Fiddle to determine the "end points" of the loop and it seems to be a chain consisting of /_trust_layouts/authenticate.aspx and /_trust/default. It's worth noting that authenticate.aspx seems

Custom Control: Multiple children, "{0} can accept only one child."


Long story short - I'm trying to build a custom accordion control that in essence is a Scroll Viewer wrapped around a Stack Panel.  Once I get past the hump I'm at now which is getting the custom control to accept multiple children I should have no further issues.  


Below is my style for the control:


  <Style TargetType="{x:Type local:ScrollableAccordion}">
    <Setter Property="Template">
        <ControlTemplate TargetType="{x:Type local:ScrollableAccordion}">
          <Border Background="{TemplateBinding Background}"
              BorderBrush="{TemplateBinding BorderBrush}"
              BorderThickness="{TemplateBinding BorderThickness}">
          <ScrollViewer Height="{TemplateBinding Height}"
                 Width="{TemplateBinding Width}"

How to set the order of custom fields in custom list definition of Multiple Content Types


Hi all,

First of all I am sorry for my poor english.

I have a custom list definition and I have mentioned two content types in the "Schema.xml" file of this list. I need to change the order of fields in NewForm.aspx and EditForm.aspx.

For e.g. I have two content types ContentType1 and ContentType2. ContentType2 is inheriting ContentType1.

Fields of ContentType1 are

1. Field1

2. Field2


and Fields of ContentType2 are

1. Field3

2 Field4


When these fields display on new form the order of fields is

1. Field1

2. Field2

3. Field3

4. Field4


But I need to change the order of field by

1. Field1

2. Field3

3. Field2

4. Field4


Can anyone help me to change the display order of fields in new and edit form?


Thanks & Regards,



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