.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 do I adjust the # of posts visible on the main page of a blog? Summary view?

Posted By:      Posted Date: October 18, 2010    Points: 0   Category :SharePoint

So while I love the basic summary view used by the blog, I would like to limit the main page to showing just the 5 most recent updates.  Most views this is easy to edit by adjusting the item limit on the list, but since the Summary view of the posts list doesn't show up anywhere I am unsure where I can set the limit.

I have looked at the editable views in designer but again I do not see the Summary view listed anywnere.  Help


View Complete Post

More Related Resource Links

Adding ListViewWebPart to a page - how do you set its view to

If you add a ListViewWebPart to a wiki/web part page (such as the Links list), it will default to the <summary View>.  If you add it using code, it will default to the default view.  How can I set it to use the <Summary View>? I tried setting node.Attributes["BaseViewID"].Value = "0" in the web part view xml, but that didn't do anything. Any thoughts? ListViewWebPart wpLinks = new ListViewWebPart(); SPList listLinks = site.Lists["Links"]; wpLinks.ListName = listLinks.ID.ToString("B").ToUpper(); wpLinks.ViewGuid = listLinks.DefaultView.ID.ToString("B").ToUpper(); AddToolBar(wpLinks, "Add new link"); private void AddToolBar(System.Web.UI.WebControls.WebParts.WebPart wp, string label) { // Get the view used in the web part by using reflection PropertyInfo viewProp = wp.GetType().GetProperty("View", BindingFlags.NonPublic | BindingFlags.Instance); SPView webPartView = viewProp.GetValue(wp, null) as SPView; // This is necessary after the infrastructure update, without it you can't get to the XML of the view webPartView.GetType().InvokeMember("EnsureFullBlownXmlDocument", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.InvokeMethod, null, webPartView, null, System.Globalization.CultureInfo.Current

How to link Title to it's associated page in list view without URL path column visible -bug?

I don't know if this is a bug or if I'm an idiot (or perhaps both, I'm open minded).   My site I'm developing is a site with publishing features activated where all my news stories are pages. What I want to have is a sortable list (the type hypothetically achieved using the XsltListView Web Part) the lists these pages with 3 columns visible: The Date created, the title (not the page name), and the author. The tricky part is that I would like the title, when clicked on, to take the person to the page. I'm actually almost there. I've created a new view with these specifications except for one issue. To make the title linked to the page, I have to have the column "URL Path" in my list view. When I remove this column, the titles instead all link to the root of the directory I'm in (ex: if I'm in Pages/Forms/My_List.aspx it will link to Pages/Forms/) Is this a bug, or is the URL Path required for the link to work? Is there a way to hide the column? Thanks.

Blog category view not showing any posts?

Is there something i need to do for the category specific views of posts?I have the categories webpart, and people are adding their posts to 1 or more categories, but when clicking on one of the categories it shows no posts what-so-ever.  THe only posts that do show are ones where I remove all categories.I have tried editing the current view and typing the category name in and that works, I am assuming that the category should be put into that field from the query string by the webpart??? or is there something i need to do??Thx for all help offered.

Recent Posts display not changing in main page!!! Most of them are static...



I have cleared browser cache, history and signed off, signed back in. I can see this header screen



Now, if I click Forums tab to navigate to forums.asp.net, I can see this


If you observe the screenshot, you can see the points are different and the posts are static (everything says few seconds ago).  Is it a browser caching issue or something else. I have seen the same thing since 3-4 hours.

Blog permissions, who can view posts


I'd like to be able to filter my blog posts in such a way that if you are in the admins group you see posts tagged with the content admin, and if you are not in that group you don't see those posts. I cannot figure out how to accomplish this. What I did do that seems to work (but it's a lot of leg work) was to create the groups for my blog (members owners and visitors) visitors have read access. I go into each post, break inheritence, remove authenticated users and visitors, then visitors can't see those posts. I tried creating two categories (visitors and admins) I removed authenticated users from the permissions of the admin category and tagged some posts with that category. When i log in as a regular user I can still see all of the posts. Is there an easy way to do this? Am I just overlooking something?



Create Custom Blog Posts View


The standrad view shows the posts with the comments hidden, only the amount of comments is showed. We would like to create a view where both the posts and the comments under it are shown. I have not found a way. Did anybody else? :)


WebDev.WebServer.exe has encounted a problem and needs to close when trying to view page in browser


Hi, whenever I load an aspx page in vwde2008, I get the message in the subject of this post.  After I click Ok on that, I get a dialog box, Unable to Connect to the ASP.Net development center.  What can I do to troubleshoot?

I am using Windows XP SP3, vwde2008 with SP1, on a HP desktop.  Also using Office 2003 if that is relevant at all.

Thanks, Justin

Crystal Report Asking for Database Authentication each time when I view Page.


Whenever I open my Crystal Report page, I am taken to the Database Authentication page where I am asked for

User name
Data Name

each time.

Is there a way to avoid this and I save these authentication in my page once.

I am using VS2005, C#.

Any Help will be appriciated.


How to display recent blog posts in marquee up tag?


I need to display recent blog post in the blog site to the right panel.

i am able to display all the title of the posts using dataview. What i need is that it should scroll up, that is all the contents should be in the : Marquee direction="up" tag.

how can i scroll the recent post's?


Blog site Restrictions -- How to set an expiration date on blog posts

I just created a new Blog site in Sharepoint 2007, and set permisions to the users and admins.
Now, I have a question on how to set the post life time. Is there any setting to contral how many days that the posts can last in the blog? We want the post include the comments kept in the site for one month.

Please help.


Add page numbers for paging in data view web part


Hello all,

Has anyone found a solution that will allow me to have page numbers for paging in a data view web part. For instance, if I have 40 items/rows and I set the paging to display 10 items, I'd like the paging to show 1 2 3 4 rather than showing 1-10 and having to click next over and over to get to a specific item.

I found this article, but it is for 2003 and doesn't seem to apply to 2007 or if it does I am not able to really figure out how.


Please help!

Thanks in advance.


close pop up and refresh main page after popup close

I am working on a application in which When user clicks on a button  he should be redirected to facebook login page and after successfull login he shud be reirected back to my page. It all is working fine but now I have to do like thiswhen user click on the Button the the facebookbacklogin page shud be opened in popUp and when login is done successfully the popup window shud be closed and the main page shud be refreshed. anf If user is already login the popup window shud not be opened.How can i do this..How can I KNow that a popup window is opened and how can I close that??How to refresh when popup window is closed.I ahve to do like on this site..http://blippy.com/

Page View Count And Users Online

Hello forum I have a couple of questions.  How do I go about tracking the number page views for my web page in a sql table?  Secondly, how do I track the number of users currently online? Any help will be greatly appreciated. Thanks  

Usercontrol, in master page, calling a method on the main page?

I have user control called 'Header.asxc' that is registered in my master page. That user control has an image link. The clicking of this link needs to cause a dropdown on the main page to repopulate. I am comforable with delegatges, with populating the dropdown etc... My problem is I cant find the usercontrol from the page, in order to set the function event. I got this work previously when the user control was registered on the page in question but this case with the master page  has me confused. Here is a summary of the set up. 1. I put this in the Header.ascx usercontrol that is registered by the Master page. public Delegate locReloadCompanyDropdown;2. Further down in that page in the relevent _Click event, I put this. locReloadCompanyDropdown.DynamicInvoke();3. Back in the main page I declared these.. public delegate void reloadCompanies(); private event reloadCompanies doReloadCompanies;4. Finally I try to set the delegate doReloadCompanies += new reloadCompanies(PopulateCompanyDropdown); //Page.Header.locReloadCompanyDropdown = doReloadCompanies; //Header.locReloadCompanyDropdown = doReloadCompanies;You can see a couple of attempts I have made remarked out in the code above. Neither work. What am I missing here? Thanks all.  

asp:TemplateField Visible upon condition in grid view

Hi, Is there a way to show or hide a Template Field within a gridview upon a condition in C#? Thanks! 

Keep part of the page always visible

I have an C#.net page to display radio stations.  Itis made in an collapsable menuds(accordian).  My problem is that I have to keep part of the page always visible(the stop, play button and volume control). Even if the user scrolls the page or expands menus the button controls should always be visible on the page.  How can I do this? Please help!

unauthorised to view this page

Hi I have an account which is a member of domain admins ad group, it is site collection administrator, its given full control on the top level site. Yet when i try and access the sharepoint and log in with this account i get the HTTP 401.1 IIS error. I can log into the same sharepoint with one of the other service accounts. If anyone could help that would be appreciated or if you could point me towards some info that could help. Thanks Simon
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