.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

Link to custom dispform from existing dispform

Posted By:      Posted Date: September 29, 2010    Points: 0   Category :SharePoint

Hoping this is easy.

I have over a dozen lists that relate to a parent list.  In the parent list I want to leave the existing NewForm, EditForm, and DispForm just as they are, but I would like to create a new DispForm called DispAll.aspx and link to it from the existing DispForm.aspx.

The point of this is that on my DispAll.aspx form I want to add in all the related data views so that on one single page my users can see all of the list items from all of the lists related to this parent.

It works great if I modify the default DispForm.aspx but it is slow to load so I would rather have the default DispForm.aspx and then link to this DispAll.aspx.

The question, is how do I create this link and how will the DispAll.aspx form know which parent ID it should be using?


View Complete Post

More Related Resource Links

Custom Email Alert template creating links to DispForm.aspx

I have a requirement to customise the alert template for a standard blog post list. To do this I: 1. Created a copy of alertstemplate.xml 2. Copied the genericList alert template node and customised 3. Registered the new template file against the site collection, iisreset and finally assigned the new Alert template to the list, when alerts are created the custom template is emailed. The problem now arises that the 'View <Post Title>' in the toolbar section now creates a hyperlink to http..../Lists/Posts/Dispform.aspx?ID=xx rather than post.aspx. I have checked using sharepoint designer that the list supporting files has the correct display item form of Lists/Posts/Post.aspx. Additionally if I reset the alert template for the list back to use the Generic list template the same problem still occurs so this leads me to believe it is not the customisations that are the problem. Code used to assign the alert template to the Posts list: var ats = new SPAlertTemplateCollection((SPWebService) site.WebApplication.Parent); var newTemplate = ats[alertName]; if (newTemplate == null) { // We did not find the specified Template. throw new Exception("Failed to find template SPAlertTemplateType.NewsPost in the template collection."); } list.AlertTemplate = newTemplate; list.Update(); Any assistance will be most welcome, thanks in advance. Alan

Custom DispForm.aspx and Search Results

I am a developer, but am proofing somethig in SPD 2010.  I am trying to create custom New/Edit/Disp/List forms for some OOB SharePoint 2010 lists (think Announcements, etc).  I am going this route because we are leveraging a mix of OOB functionality and custom functionality.  We want to avoid users "accidentally" navigating to the OOB New/Edit/Disp/List forms and have only our custom forms displayed.  This includes things like creating new items in calendar view and links from search results. So far, I have used SPD to create a new, custom, DispForm.aspx named "DispFormCustom.aspx".  I just made minor modifications to it so far - like changing background color to red.  Otherwise the new "DispFormCustom.aspx" is exactly what SPD gives you when you say you want to create a new Display Form.  I have selected that the custom form be the "Default" display form for the list. When I go into the list, and select "View Item", I get my custom form. When I do a search (using OOB search), the search result takes me to the original "DispForm.aspx" and not my custom form (eventhough I have specified it to be the default).  I have cleared the search index and done a Full crawl and the same behavior. I did navigate to the Content Type edit screen in SPD, in the "Forms" section, modif

How Do I Fix Broken Link to DispForm.aspx?


Hi All,

I've done a bit of renaming of form pages under one of SharePoint lists, and have no discovered that instead of linking to DispForm.aspx, the picture library in question, now just links to the home page. My first reaction was to right-click the list in SharePoint Designer, and go "Properties". I then when to the "Supporting Files" tab, but it only allows you to specify the "New Document" and "Edit Document" forms. It doesn't have anywhere to set the "Display Form" page.

Can anyone tell me how I can link my picture library back to DispForm.aspx?


Sharing custom DispForm.aspx across sites

We have a need to customize the default dispform.aspx for displaying announcement content type.  I have created a test site and created a modified dispform to display the announcements like i wanted.  I would now like to copy this modified dispform.aspx to another site and display the announcements for that site using the customized dispform.aspx.  Apparantly I cannot simply copy the modified dispform.aspx to the site.  Also, what would I need to do to change the default list form dispform.aspx for the entire site collection.  Any assistance would be greatly appreciated.

video tutorial link for composite and rendered custom server control


hii all

i am new to technology so go easy on this post

according to what i read from web there are 3 type of custom server controls

1 superclass

2 composite

3 rendered

i found video tutorial for superclass custom server control but couldnt find video tutials for other 2.

please forward me link for composite and rendered custom server controls video tutorial  

XML Schemas: Take Advantage of Existing External XML Schemas with a Custom Import Framework in ASP.N


Over the years, many industry-standard XML schemas and dialects have been developed. These industry-specific schemas embrace the original purpose of XML and are extremely valuable in promoting and supporting B2B interaction. Unfortunately, the ASP.NET Web Services runtime does not allow developers to directly reference external schemas from within their XML Web Services interface (the WSDL file). This article builds an external schema framework as an extension to the ASP.NET Web Services runtime to enable you to reference external schemas within your XML Web Service interface.

Scott Short

MSDN Magazine December 2002

Creating a custom column with a link to document (other than the name field) in document library



I have a document library with the standard name column linking to the document. However, we'd like to create a custom field and have that link to the document (and edit item menu).

How is this best accomplished?

Thanks in advance!


Way of showing ID on the DispForm.aspx page without programming?

Is there a way of showing the ID system field on the DispForm.aspx page without programming.
I don't want to use a dataview, as new fields being added in the future won't appear automatically anymore this way on the DispForm.aspx page. 

I found somewhere that I could use a calculated field, with as formula =ID (so, in fact just copying the value of the ID field in the calculated field), which is one option.

Are there other options/solutions known?
Patrik | My Blog

Open a link in new window from a custom fields description MOSS 2007



I have kept a help link (ex: http://www.msdn.com) under a document library field's description. i want this link to be opened in a new window with out navigating from that page.

any ideas greatly appreciated.




How to Hide Start Time and End Time for All Day Event in Sharepoint Calendar DispForm

Hi All, Currently, when I add my Calendar web part to my page it displays the date and time for start and end dates. How can I get my web part to hide the times and only show the start and end date when the All Day event box is checked?

Get Content type Id in dispform.aspx

I have added a data view web part to a DispForm.aspx of a particular list which displays the data from the child list associated to that particular list item in the parent list. In the Child data view web part I show the list of child items and a hyperlink to create a new child item.  But, the child list has 11 content types and i need to redirect to appropriate newform.aspx,how do i get the contenttypeid so that i can append to the url and redirectPlease remember to mark your question as "answered" if it solves your problem. My SharePoint Blog http://dhireny.blogspot.com

Connect to an existing connection manager from within a custom transformation?

I'm developing a custom data flow transformation and have hit a roadblock.  I need to create an ADO connection to one of the connection managers that's defined in the package already.  I can either hardcode the name of the connection manager, or define it as a custom property....the problem I'm having is accessing it at all.  What I've found is that ComponentMetaData.RuntimeConnectionCollection[0].ConnectionManager only has the connection managers defined by the component itself, not already existing in the package.  How do I create a connection to a connection manager that's defined at the package level at design time? Thanks

Copy of dispForm.aspx and lookup column

Hello, we have created in SPD 2010 a new Dispform. This new dispformuser.aspx is the new default form for viewing list entries. We want to hide some elements with jquery. We are using some lookup columns in our list. When we open an entry in the new form, the lookup-columns looks like <a href="http://s-sharepoint-02.kkrn.local/_layouts/listform.aspx?PageType=4&ListId={1D8EE013-E164-482F-861E-9CACB2EBF6B5}&ID=1&RootFolder=*">Marien-Hospital</a> The form is not customized at the moment, it is only a copy at the moment. Any other colums are ok. Editform and newform seems to be ok, also the lookup columns. Maybe somebody can help us with this behaviour.  thank you Regards Marc

About Dispform.aspx

Hi,I designed one data submission form which stores the data in List.if you search something related to listitems the output will display in dispform.aspx.but as per my requirement they(customer) dont like look and feel of dispform.aspx.so i redirected to my own customized page writing some code(javascript page redirect code ) in dispform.aspx.In my customized page i am showing results(list items).if you search something related to listitem first it will show in dispform.aspx(for a 1sec) then after showing my customized page.So how can i solve this one.(customer want some flas on result page i.e customized page)any suggetions or any another way to change or customized  of dispform.aspx.please help me out.Thankyou for your valuable suggetions.Thanks

Replace standart DispForm with my application page for External Lists



Hi all,

I'd like to use my application pages (with code behind, not modified with Sharepoint Designer pages) for View/Edit/New operations.

As I know there is an issue how to do it:



SPContentType ct=web.Lists["ListName"].ContentTypes["ContentTypeName"];



And this works fine for common Lists, but when I'm trying to do it with External List,

I have an Exception on Update method:

SPException: The collection cannot be modified.


I've tryied:


web.AllowUnsafeUpdates = true;


ct.ReadOnly = false;

// or
ct.Sealed = false;

and nothing of it helped me...

Is anybody knows how can I make it? May be another method to do it?

Hide the empty rows on dispform.aspx using javascript


Guys, can I hide the empty rows on display form using javascript?

If you know anything, Help me.


Retreive Customer field value in dispform.aspx


Hi All,

I have customized newform.aspx in sharepoint to use a new Customer field (which I added as dropdownlist connect to my own customer table). Everything works Ok. I can see customers in create service request.

But now when I see existing service request from the list using dispform.aspx  it doesnt show the customer value. How can I do this? Thanks.


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