.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

Support paging in custom xslt and apply it to Listview webpart

Posted By:      Posted Date: September 14, 2010    Points: 0   Category :SharePoint
Hi Gurus, I have a listview webpart. I want to apply a custom xslt to it. I am able to apply a custom xslt to the listview webpart, however I am not able to find a xslt code to support "paging" in the xslt for the webpart. Please bail me out. Thanks in Advance Regards, Bokes

View Complete Post

More Related Resource Links

Unable to retain Global XSLT parameter value on Listview webpart when paging



Hi Gurus,


We are working on SharePoint 2010.


We implemented Pagination for a listview webpart, on which our custom xslt is applied. We achieved it by applying a pagination xslt to the webpart.


However, we want to filter the listitems appearing in the listview webpart using a pagesfilter webpart(our custom developed webpart for filtering values from the list) on the same page.

We enabled the “Enable Asynchronous Update” property of the listview webpart for pagination.


MyLinks dropdown apply to one asp.net dropdown control in MOSS custom webpart

Hi, I am using MOSS 2007 with Visual Studio 2008. I have to develop one custom webpart having one asp.net dropdown. Now on click of that it should open the same or similar type of window which open OOB Mylinks link. can anyone suggest me some solution or related links?

How can I add custom Search Paging webpart in the Search results page in MOSS 2007


I have created a Basic webpart page and added Content editor webpart to extend the functionality of Advanced Search webpart. This is working fine. Also added OOB Search Paging webpart int his page. But when the number of items returned by the Search Core results webpart exceeds the Page size (10) then when I click on the next link in the Paging webpart then all results are lost and retrieved from All Sites scope. Is there any way to hook into the Search paging webpart.?

Please note that in the Content Editor webpart I have used custom search scope.

I need help with regard to this.

Thanks in advance!.

How to use Navigation Hierarchy control with ListView Webpart on a custom web page?



Here is what i am trying to do with managed metadata and lists.

List name: MyList, it will have 2 managed metadata columns 'Business process' and 'Management model'. I have enabled metadata navigation settings for this list on mentioned columns

I will have a data view webpart mapped with MyList on one of the custom pages. I want to add Navigation Hierachy Control Or equivalent on this custom page which will be based on managed metadata columns 'Business process' and 'Management model'. On the selection of a node from this hierarchy, i would like to filter the ListView on the page.

Is there a way to directly use Navigation Hierarchy that we get on AllItems.aspx page corresponding to List? or any other out of the box method to achieve this WITHOUT custom code?

Thanks and regards,


Rowlimit and PageFirstRow properties of listview as parameters to Listview Webpart


Hi ,

 I need to set the  Rowlimit  and PageFirstRow properties  of  listview  as  parameters to Listview Webpart

 And these parameters  will be passed from the custom provider webpart


name of the list will be provided in custom webpart's toolpane.

and i need to save this as list content type of list defs


Please provide me the guidance on this.



Create a Outlook Task from Custom WebPart in Code



I have a requirement to create a Outlook Task , from a custom webpart through code .

Is this possible?

has any body tried this , if yes can you please give me an insight on how to acheive it.

Some sample Code would be highly appreciated.



Apply custom.master to "Site Settings" page?


I'm using a custom.master page, which is applied to almost all pages available to READ users.

However, I'd like to apply it to the Search, Site Settings, and View All Site Content pages.

I'm not sure where this would be applied.

Guidance much appreciated. Thanks!

SPGridView Paging In Webpart

I'm working on making results display web part and I'm displaying things using an SPGridView.  Things are working fine, except that I can't get the paging to work correctly.

The paging controls are displaying, but when I click to the next page, it reloads the page I'm on and I loose my results (basically the data isn't getting sent to the next page).  Below is the code I have:

Button cmdSearch;
        TextBox txtQueryText;
        DropDownList scopesDropDown;
        Label lblQueryResult;
        SPGridView grdResults;

        protected override void CreateChildControls()
            // Create and add the controls that make up the
            // user interface of the web part. 

            scopesDropDown = new DropDownList();


            txtQueryText = new TextBox();

            cmdSearch = new Button();
            cmdSearch.Text = "Start Search";
            cmdSearch.Click += new EventHandler(cmdSearch_Click);

            lblQueryResult = new Label();

        void cmdSearch_Click(object sender, EventArgs e)

Overriding web.config in sharepoint webpart/using custom membership in web part

I'm developing a web part for MOSS 2007. The web part is being deployed to a web application which utilizes forms-based authentication, and role/membership providers to control users. The membership table has been edited to include addition user info (I am aware, that this isn't the best way to handle additional user, i.e. profiles etc., however, this is a requirement from another department). Since my web part needs to access this information, I was thinking of implementing a custom membership provider. So far I've followed: http://msdn.microsoft.com/en-us/library/6tc47t75.aspx and I've got my custom membership class, and a very stripped down membershipprovider-class. But how do I enable/use this membership provider in my web part? I've tried creating a simple web.config in the "WebPartCode" folder of my solution, next to my webpart code file, with connection string and membership provider tags. But I don't even really know how to build/reference/use the membership provider itself, so I don't know what else I need to do. I've built a C# class library project with the two classes (membershipprovider and custom membershipuser) and compiled it and installed it in the global assembly cache - is this correct? and how do I access them from here? Hope someone can help

how to apply css to custom web part?

I've created a custom web part in visual studio 2005. i want to apply style sheet to this web part? how do i do this? where should i add reference for css in custom code?

xslt in dataview webpart

Hi, Can anybody tell me plz , the difference between <xsl:param  ........./>,<xsl:with-param  ........./>,<xsl:variable........./>? I feel both param and variable are same   Thanks

How to create a custom webpart - similar to page viewer webpart but one that will be able to get a p

we want to pass a link to moview items from a list, the page viewer seems god to display the movies but it doesn't support connections....?

How to develop a custom (media) webpart which supports webpart connections (as consumer)?

We have a list of youtube links and we want to enable user to click a list item and watch the moview in another webpart, but i didn't find a webpart which supports that (the page viewer seems suitable to display moview but does'nt support connections). So we are thinking of develop the consumenr webpart that display the moview by the parameter it gets from the list. Can you help? thanks

Cannot enable Ribbon Edit Tab buttons and "connect" them to a list item in my custom webpart

I have one list with some custom fields and I want to develop a custom page. So, I created an ASPX page and added my custom webpart. This webpart has just a RichTextField, in edit mode, "linked" to one item of the list, like below: SPSite _SPSite = SPContext.Current.Site; SPWeb _SPWebProjects = _SPSite.OpenWeb("/Projects"); SPList _SPListProject = _SPWebProjects.GetList("/Projects/Lists/Project"); int _ID = Convert.ToInt32(this.Page.Request.QueryString["ID"]); RichTextField _RTF = new RichTextField(); _RTF.ID = "RTF"; _RTF.ControlMode = SPControlMode.Edit; _RTF.FieldName = "History"; _RTF.ItemContext = SPContext.GetContext(HttpContext.Current, _ID, _SPListProject.ID, _SPListProject.ParentWeb); _RTF.RenderContext = SPContext.GetContext(HttpContext.Current, _ID, _SPListProject.ID, _SPListProject.ParentWeb); this.Controls.Add(_RTF);   Then, I "turned on" the edit tab on the ribbon by doing the follow: protected override void OnPreRender(EventArgs e) { SPRibbon _CurrentRibbon = SPRibbon.GetCurrent(this.Page); _CurrentRibbon.TrimById("Ribbon.WebPartPage"); _CurrentRibbon.MakeTabAvailable("Ribbon.ListForm.Edit", string.Empty); _CurrentRibbon.MakeContextualGroupInitiallyVisible("Ribbon.ListForm.Edit", string.Empty); _CurrentRibbon.Minimized = false; _CurrentRi

I can't get my search paging webpart to work

I created a page and put a core results web part on it.  I changed the url to myurl?k=pdf (to show a bunch of pdfs).  This works well.  I customized my xslt to show the columns that I want.   I added a paging webpart and it doesn't seem to work.  I added a refinement panel, and that does work.  Both are set to user query.  I changed both "Maximum page links before current" and "Maximum page links after current" to 2 so I would definitely see paging.

Creating Custom ASP.NET Control for use on a SharePoint 2010 OOTB WebPart

I am currently trying to develop a custom asp.net control that can be deployed to SharePoint 2010 and then included on something like a New item form. I have been able to build the control as part of a webpart but it needs to be done as a stand alone control that can be used on various webparts including the out of the box webparts like the WebPartPages:DataFormWebPart. Are there any good examples of building a custom control, deploying it to SharePoint and then using SharePoint designer to add that control to an existing web part?

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