.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

How to show all attachments in Allitems.aspx in the custom list?

Posted By:      Posted Date: April 10, 2011    Points: 0   Category :C#


I am very new to sharepoint and I was wondering if you could help me out with something:

I am creating a sharepoint list where I want to add a few attachments to each row, and then have the attached documents displayed in the public default view as links to the documents, instead of just the paperclip icon.

I've tried to search on how to do this, but I haven't really found anything that explains how to do this in SharePoint 2010 ... Can somebody give me a pointer?

Note: I 've seen this link that is a resolution for the SharePoint 2007 and

View Complete Post

More Related Resource Links

Show total items for GridView in List.aspx or GridViewPager

Hi, Is there a solution to show total items in Grid View in List.aspx or GridViewPager Eg. Record: 1 - 20 of 231 

usageDetails.aspx data to a custom list?

any suggestions on how to get the data from _layouts/usageDetails.aspx to a custom list? trying to save a massive amount of time by identify users that haven't accessed a site in a given period of time.       

How to provision custom list and import custom aspx pages automatically in sharepoint?

What is best way to create custom list (Document library) and import custom .Net pages automatically. The goal is to avoid create the list and upload those .net page to the list manually. Any code snippet that would be great help. thanks

Viewselector is not working in a custom ASPX list view nor does the custom view display in the list


I created a custom ASPX page to display data from a linked datasource in SharePoint designer. (Let's call it NewView)   After creating the new page I inserted a web part zone then inserted a data view into the zone and attached the default master to the page.   From the linked data source, I added the columns I wanted to display in the data view and added additional columns from the 2nd linked list as a subview.

I copied the following code just after the </WebPartPages:SPProxyWebPartManager> tag and just before the <WebPartPages:WebPartZone tag:

  <table class="ms-menutoolbar" cellpadding="2" cellspacing="0" border="0" width="100%">
    <td class="ms-toolbar" nowrap="">
     <SharePoint:NewMenu runat="server"></SharePoint:NewMenu>
    <td class="ms-toolbar">|</td>
    <td class="ms-toolbar" nowrap="">
     <SharePoint:ActionsMenu runat="server"></SharePoint:ActionsMenu>

Custom Page Template (List.aspx) - one to many relationship


Hi, I have two tables which is Customer and Customer Details table, with one to many details.

Is there possible to show Child table's column in (done in one GridView) Customers/Lisp.aspx?

can not attach custom aspx list item form to the list




I'm need make custom aspx list item form for tasks of my workflow. I'm use code from this book: SharePoint 2010 as a Development Platform


my Elements.xml file

<?xml version="1.0" encoding="utf-8"?>

<Elements xmlns="http://schemas.microsoft.com/sharepoint/">

  <ContentType ID="0x010801005c12bbf6e6e548569e8100f1ad953859"

               Name="?????? ???????? ???????? ?????????? ???????????"

               Group="Custom Content Types"

               Description="My Content Type"



Custom Form NewForm.aspx for List


hi All

I have ContentType with one field and its custom New , Edit and display.

I attached this content type to custom list.

As I try to add new item to List, Custom NewForm.aspx from layouts pages is opened, that is gr8 as per requirement.

but i am using sharepoint control dropdownchoice for one field in contenttype with serveral properties set.

and as I try to submit the data I am getting error like


Failed to get value of the "CustomField" column from the "Choice" field type control.  See details in log. Exception message: Object reference not set to an instance of an object..


I am not able to track it out....


Any Suggestion


Saumil Thakkar



Accessing my custom aspx page in the place of Newform.aspx of the list



I have a aspx page where i have designed the controls as per the need.Now my requirement is as soon as user click on 'New' of the List,i am expecting to aspx page to come as Newform.aspx of the list.Could you please share your ideas regarding this?

Thanks & Regards,


Column to show count of attachments uploaded for each List item in MOSS 2007


We have two requirements:

First, we need a column which shows the count of attachments that are for uploaded each item, the list structure is like below:

No. Of Files Attached Title Category Description Owner

SharePoint Custom Workflows - Transfering Attachments From One List To Another?

We are trying to use a more in depth version of the Sales Lead Pipleline Template where we convert Leads to Opportuinities and then Once the Opportunity has been won it transfers the info into a Job List (Custom List) and a Work Order Assignment List (Custom Task List). We are storing the attachments related to each lead/opportuinity in the lists as well and want them to transfer with the workflow when the new list item is created after we hit the convert button. I am using SP Designer and have really modified the site and workflow but when i set the attachment settings in the workflow then return to the list and test the workflow to verify that the attachments are transfering with the rest of the data, i get an error occured on the workflow and none of the data is transfered.

Can anyone help me with this?

Customizing AllItems.aspx in List definition project


Hi to all,

I'm creating List definition project in VS 2008. I want to customize allitems.aspx.

I'm planning to create a view similar  like the view I can create with sharepoint designer, but I want to deploy it with my list definition.

Anyone knows some good walk through or article? Or any tip at all?

Restricting access to List Views and View pages? Renaming Allitems.aspx?


Ideally, what I want is column level security on a custom list, but that appears to be way more work than it's worth.

Any easy way to restrict access to Views or View pages to select SharePoint groups? Maybe some client level code we have in a Content editor webpart on the View page?

Users in the Group have read access to a particular list.  The Quick launch menu is hidden (I understand that's not real security) .. and the top level tabs are set to particular audiences, and  I understand they can still call the pages if they know the URL.  I've warned the users about this.

I have not tried it, but can I have folders under the list folder and then somehow secure them?

We currently have custom pages for adding and editing list items, but will terrible things come from renaming the Allitems.aspx page or editing it and taking out the View, like for example, say we do have to use newform.aspx for some admin reason and it redirects to it..

Any way to disable users from being able to open the list exel or export it?

Anything else we can do. The goal is to provide some visitor type users read access to some 10 columns in a list, but not let them see the remaining 5.

Thanks for any help or information.

Advanced Search does not show items from Custom List- why?



I have search working in general for site. However, when I run it only picks up files - not list items. Even List search in top right comes up with blank results.  

I read somewhere that this is switched off due to size of search results.

Can someone tell me how to include List Items in search?



Show custom error message inside SharePoint Business Data List web part?

I am using SharePoint 2007 Business Data List web part to show external information retrieved from my simple web service. Is there ability to show custom error message on Business Data List web part?

show row of list data in collect.aspx page



I have sharepoint list that user raise a question on it,then I want to collect data from Manager to confirm this question.

I create workflow when item created with collect data action, I want to show the item that user add to list in collect .aspx page that manager can see related data that user enter it,then decide to confirm it or not. How I can show data(one row that user enter it) on collect.aspx page?


Custom views on .aspx webpage


Hi again, i have a client that needs me to create a custom view on thier webpage similar to Microsoft Word.

It goes about that, when I click on an image it redirects me to another page and must create a custom view for a certain paragraph on that page. I am not sure how to do this and wonder if anyone knows how.

I am using C# programming language if that helps at all. I Heard that using javascript would work but i dont know javascript yet so is there any alternative?

Delete not working on List.aspx - out of box



I'am trying to use Dynamic data web site on my project. I have Visual Studio 2010 enf Framework 4.0. I create the default project with the wizard. I add my own Entity Data Model.

When I try to use the "delete" autogenerated button on List.aspx, on the table ServerSetting (see image below), I receive a null exception.  I have no custom code involved in this operation and cannot seem to determine what is Null.

Any help would be appreciated!



[NullReferenceException: Object reference not set to an instance of an object.]
   System.Data.Objects.Internal.ForeignKeyFactory.CreateConceptualNullKey(EntityKey originalKey) +30
   System.Data.Objects.DataClasses.EntityReference.NullAllForeignKeys() +722
   System.Data.Objects.EntityEntry.NullAllForeignKeys() +235
   System.Data.Objects.EntityEntry.Delete(Boolean doFixup) +77
   System.Data.Objects.EntityEntry.Delete() +9
   System.Data.Objects.ObjectContext.DeleteObject(Object entity, EntitySet expectedEntitySet) +169

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