.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

Updateing link list C# sharepoint 2010

Posted By:      Posted Date: May 22, 2011    Points: 0   Category :C#

Hi to all,


I have a question about updating list based on sharepoint link list. There are two important fileds for me:


URL description (belongs to URL field)

I user following code to update my link list on page load

string dashListRootStr = "http://ite-shp01/sites/myportal/Lists/MyBookmarks";

            using (SPSite site = new SPSite(dashListRootStr))


                using (SPWeb web = site.OpenWeb())


                    web.AllowUnsafeUpdates = true;

                    SPList list = web.Lists["MyBookmarks"];

                    SPListItem Item = list.Items.Add();

                    Item["URL"] = Page.Request.Url.AbsoluteUri;

                    //Item["Description"] = "Bookmark";


View Complete Post

More Related Resource Links

SharePoint 2010 Approval Workflow email is not showing link to Workflow Task list



I have created an out of box Approval workflow in SharePoint 2010. I am receiving email with below information

Task assigned by Chinna Malipedu on 10/7/2010.

Due by 1/1/0001

Approval started by Chinna Malipedu on 10/7/2010 11:43 AM
Comment: Approve



To complete this task:
1. Review SharePoint2010.
2. Perform the specific activities required for this task.
3. Use the Open this task button to mark the task as completed. (If you cannot update this task, you might not have access to it.)

But I need to go to Workflow Task List by clicking 3 item "Use the Open this Task" , this is not a link here

or I want like "Edit this task to mark the task as completed."  Edit this task should link to Task List

How to do this? do i missing any configuration?

I have successfully done the same  in MOSS 2007.                                                               Is there  any extra&n

How to send a link to list item by email in SharePoint 2010?


With SharePoint 2007 list item display form is openned in broswer and user can either copy and paste the url and send the link by email or use the browser's "Page" button and click "Send the link by email" to send the link.

With SharePoint 2010 list item display form is openned in a dialog box, the browser doesn't show the list item url and the browser's "Page" button's "Send the link by email" just sends a link to the list not the list item.

We don't want to diable the dialog box either. Please help.

Quick Note: Create Custom List Definitions in SharePoint 2010

In this exercise, you create a custom list definition in Microsoft SharePoint 2010 and then create an event receiver that is triggered when the list is used.

Video: List Relationships and Joins in SharePoint 2010

The SharePoint lookup field allows you to connect an identifier of one list and to display a different, friendlier field - such as name - for users to select. SharePoint 2010 adds the ability to create additional columns that display other fields from another list. (Length: 10:46)

Video: Large List Support in SharePoint 2010

SharePoint 2010 has support for very large lists of up to 50 million items. With this expanded list size comes the ability to throttle and control how much data is returned to the user and prevent large queries from compromising the SharePoint farm. (Length: 15:36)

Video: Field and List Item Validation in SharePoint 2010

SharePoint supports the ability to create Excel-like field validation formulas to validate field data in a list, which greatly reduces the amount of custom code that a developer must create and deploy. (Length: 1:44)

Video: Accessing SharePoint 2010 List Data

In this video you will learn how to create strongly typed classes using a tool called SPMetal to do LINQ programming against a SharePoint 2010 list. (Length: 15:22)

Video: SharePoint 2010 Lists, List Data, and CAML

This demonstration illustrates how to work with list data and the Collaborative Application Markup Language (CAML). (Length: 5:05)

Sharepoint 2010 List Added Event Problem

Hi All, I have created List Added Event Handler. In that Event I want to Add Custom Field in List as List is created. I get an Error "The Specified Program Requires    a newer version of windows" Is there ant solution for it. I have tried it also creating new instances of spweb and spsite rather than getting it from "Properties" Thanks Saumil Thakkar

How to get rid of the (More Links.) link on lists in SharePoint 2010?

I have a list of 5 items. The view settings are set so that the Item Limit is 20. I would like the eliminate the (More Links...) link under the list when the web part is on the page. I also tried setting the Toolbar properties to No Toolbar. Any ideas? Thanks.

SharePoint 2010 Reporting Services report on sharepoint list rsExecutionNotFound

I cannot get SQL Reporting Services 2008 R2 to work with a datasource that is a sharepoint list.  Reporting services seems to work fine setup in SharePoint 2010 Integrated mode. When I try and run a report that is based on a sharepoint list, I immediatly get the following error: The report execution tp15sp4515l3seqqo4do3e45 has expired or cannot be found. (rsExecutionNotFound) This seems to be something I am doing wrong with the sharepoint configuration, I would guess.  I haven't tried a regular database query, but they used to work when reporting services was configured for native mode.  So I assume this is just a problem connecting to sharepoint 2010 lists, with the new SharePoint 2010 List connection type. Edit This has got to have something to do with a permission setting for the app pool account of sharepoint.  I read something once where it said you had to grant it permissions, but every guide I've found since then doesn't mention anything about it. This log entry is where the problem seems to be occuring, I just don't know what permissions to give TESTDOMAIN\spweb which is the app pool account. library!ReportServer_0-3!1bdc!09/01/2010-09:58:03:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerStorageException: , An error occurred within the report server database.  This may be due to a connection failure, tim

How to link SharePoint List with MS Access 2007 programmatically

Hi, can anybody tell me how to link SharePoint List with MS Access 2007 without opening Access environment. I want to do it programmatically through C#/VB.net doesn't matter. Your help will very much appreciated. Thank you so much! -Jarexs

Error creating Read Item or Read List operation in Sharepoint Designer 2010

In terms of high-level requirements, I need to pull in lists from a couple of different web apps.  To do this, I’m using SPD 2010 to create an External Content Type for the list of interest.  I’m able to create a SOAP Service or WCF Service connection just fine.  However, when I try to create the external content type and create a Read Item Operation on one of the GetList or any other Get* (or other Update methods for that matter) methods, I get the following error:"The method that your operation is based on has parameters with complex types that do not have default parameterless constructor.  This kind of data source methods cannot be used in Business Data Catalog."I tried defining an operation on the “AddAttachment” method, and that worked just fine.  I also tried providing default values to the listName and viewName parameters when creating the SOAP Service connection, but still get the error.  Same issue with a WCF Service connection as well. Does anyone know if this is a 2010 issue, or am I approaching this requirement incorrectly?  What are other approaches for connecting to lists that reside in a different web app than yours? 

SharePoint 2010 Refinement Panel - Show more link issue

Hi,  I have deployed a Refinement Panel on my search result page. And I have modified the Filter Category Definition to get some Managed Metadata columns. Below are the xml changes: <?xml version="1.0" encoding="utf-8" ?> <FilterCategories>   <Category    Title="Category"    Description="Managed metadata of the documents"    Type="Microsoft.Office.Server.Search.WebControls.TaxonomyFilterGenerator"    MetadataThreshold="3"    NumberOfFiltersToDisplay="3"    MaxNumberOfFilters="20"    ShowMoreLink="True"    MappedProperty="ows_MetadataFacetInfo"    MoreLinkText="show more"    LessLinkText="show fewer" />   <Category    Title="Modified Date"    Description="When the item was last updated"    Type="Microsoft.Office.Server.Search.WebControls.ManagedPropertyFilterGenerator"    MetadataThreshold="5"    NumberOfFiltersToDisplay="6"    MaxNumberOfFilters="0"    SortBy="Custom"    ShowMoreLink="

Cannot access parent site list from subsite in XSLt List View webpart in sharepoint designer 2010

Hi    We are using sharepoint 2010  for internet facing sites for our big client in healthcare domain .  I am using XSLT list view webpart in sharepoint designer 2010 for retrieving contents from sharepoint list & displaying it by using XSLT List view webpart in publishing sites. We are having lot of list in rootsite collection, If i am creating pages by using XSLt list view webpart in root site collection I can access the list,View and Display in Pages by XSLT List view webpart. Now the requirement is i have to access the list in roosite collection(parent site) from subsites.  In Sharepoint designer 2010, while i am inserting XSLT list view webpart, i could not find datasource to access the list that exist in rootsite collection(Parent site) from subsite. Below is the the code i am using for accessing the list& view from parent site & creating the pages in parent site by using xslt list view webpart,now i wants to access parent site list from subsite by using XSLT list view webpat in subsite pages.  Pls let me know what i have to change in the code level <WebPartPages:XsltListViewWebPart runat="server" Description="The list for the conditions details" ListDisplayName="" PartOrder="2" Default="FALSE" HelpLink="" AllowRemove="True" IsVisible="True" All

Is there any tool like SharePoint list schema generator for SharePoint 2010.?

Is there any tool like SharePoint list schema generator for SharePoint 2010.?

what is the best way to move a wss 3 list to Sharepoint 2010 server?

what is the best way to move a wss 3 list to Sharepoint 2010 server? (note, the wss3 is a hosted sharepoint so we don't have access to the server o/s) tx!  ==GP Blog== http://dynamicssmallbusiness.blogspot.com/ ==Free GP Addons/Customizations/Tips== http://landiscomputer.com/offer/1010_GP_Newsletter.htm ==GP Tweets== http://twitter.com/search?q=%23dyngp#search?q=%23dyngp
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