.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

aligning columns in web part pages

Posted By:      Posted Date: September 17, 2010    Points: 0   Category :SharePoint
Hi, i have a page that has lots of web parts displaying various lists. I cannot get the columns to line up properly, so they all look misaligned. Is there any way to fix this? I found this article which describes the problem exactly but the fix only works for SharePoint 2007 ( I am running SharePoint 2010 Enterprise) http://social.technet.microsoft.com/Forums/en-US/sharepointgeneral/thread/b92955a8-a1c9-45e1-91e4-b241513b0e25

View Complete Post

More Related Resource Links

SharePoint Application and Site Pages - Part 1 of 2

In this first part of the two part series, Steven covers the differences between Site and Application pages in SharePoint 2007, why each may be used in various circumstances, and prepares for the construction of a menu located application page. After a brief introduction he examines the concept of Site Pages and Application Pages separately in detail with supported screenshots.

SharePoint Application and Site Pages - Part 2 of 2

As the second article in a two part series, Steven examines the attributes and details of a SharePoint 2007 application page, including the construction and feature deployment of the same page based project. Since this is a WSS level objective, as opposed to MOSS, you will not need MOSS to work with the code included in this project. Windows Server 2003, WSS, and Visual Studio 2005 are all that is needed, with no additional add-ons. He provides a detailed analysis of each step involved in the creation and deployment of the project.

Cutting Edge: Subclassing and Overriding ASP.NET Pages-Part I


There are a number of techniques that allow you to modify a running ASP.NET page without touching its source code. Dino discusses some this month.

Dino Esposito

MSDN Magazine April 2007

Web Part working fine on the top-level page but 'Not Safe' error on lower-level pages.


I have created a Web Part which reads and parses the SharePoint logs in order to display usage information of the page it resides on.  The Web Part works perfectly on the top page, reading and displaying the information desired.  However, once the Web Part is added to any page lower in the site heirarchy (sub-page) the same Web Part throws the following error:

Web Part Error: A Web Part or Web Form Control on this Page cannot be displayed or imported. The type could not be found or it is not registered as safe.

Show Error Details
Hide Error Details

[UnsafeControlException: A Web Part or Web Form Control on this Page cannot be displayed or imported. The type could not be found or it is not registered as safe.]
  at Microsoft.SharePoint.ApplicationRuntime.SafeControls.GetTypeFromGuid(Guid guid)
  at Microsoft.SharePoint.WebPartPages.SPWebPartManager.CreateWebPartsFromRowSetData(Boolean onlyInitializeClosedWebParts)

Of course the current version of the Web Part is in the SafeControls list on the web.config.

The Web Part was originally designed to return site activity only for the top default.aspx page and worked fine but started to fail in the manner described above once I added the following line of code to return a SPCo

Show wiki page library columns on wiki pages- SharePoint 2010

I created a wiki page library in SharePoint 2010 and added a few columns to the library. However, these columns do not show on the actual wiki pages as they did in SharePoint 2007. I looked through the library settings but didn't find anything to turn on this feature. Does anyone know how to do this or if this feature was even included in SharePoint 2010? Thanks.

having problem opening up pages correctly from web part

Hi all, I have a SL4 application that I'm trying to deploy as a webpart in Sharepoint 2010. To give you a background -- the SL project name is MyStuffApp. And there's a designated test page project called MyStuffApp.Web. Now, MyStuffApp has 2 different xaml pages, page1.xaml and page2.xaml. I've added two aspx pages on MyStuffApp.Web called page1.aspx and page2.aspx to respectively host the two xaml.  When I run the application, page1.aspx opens up. It has a hyperlinkbutton on it, which when clicked, opens up pag2.aspx. I've properly managed this on App.xaml.cs as well.  Now my problem is -- when I deploy the project as a web part, I can see page1.aspx. But when I click on that hyperlinkbutton, it doesn't display the content of page2.aspx, and I instead get the standard IE error "cannot display the webpage".  Can someone help me troubleshoot the issue? I'm very new to web parts, so I'm trying to learn things step-by-step.    Thanks.  

Content Query Web Part Styling and Columns with Underscores



I'm having a problem with using a column which has an underscore in a custom styled Content Query Web Part. To keep it simple the column name is Mobile_Content, with an underscore. This is causing the issue as columns without underscore work fine. My CommonView Fields property looks like this in the .webpart file:



property name="CommonViewFields"

user login & secured access pages via web part?

The client wants to have certain sharepoint-driven pages available only to their end customers who login to the site via secured login (to the site content, not the sharepoint CMS).  Can this be done via a web part somehow?  We're not a sharepoint house, and have been asked to take over management of this sharepoint driven site! Normally we'd write an ASP chunk to validate against a database but not sure how to do this (or by some other method) in the Sharepoint CMS. Thanks...

How to supress blank pages when columns are hidden


Is there any way to supress blank pages from being printed when columns are hidden? This will be a complete annoyance to customers.

What I what to do is set some setting that will cause the blank pages to be omitted when hidden colums shrinks the data down to the point that the width of the document is wider than that of the shown columns.

Filter on web part not working for certain columns


Hi all,

I have a list of "Faults" - this contains the Shop Number that the fault was logged against (which is a lookup column to the "Shops" list), who logged the fault ("Created By") and the details of the fault ("Title").

If I add the list as a web part and filter by Created By, it works perfectly - I get multiple entries in the list for all faults logged by a certain person.

However, if I filter by a Shop Number - I only get a handful of entries in the list, going back a few days - anything older than that is simply not there.

Yet if I go to the main page for the Faults List (AllItems.aspx) and change to Datasheet view - the filter works perfectly, I can see EVERY entry for a particular Shop when filtering on Shop Number.

Any ideas? It only seems to happen when using a Web part OR a DFWP - as a result, I can't pass the Shop Number as a filter parameter to it, nor can the users see a complete history of faults when viewing individual shops.

I've no idea what has changed recently, other than deletng some custom views we had created in the Faults list - could this have caused a problem? Can the Faults list be "reset" somehow without losing any data? To clarify - it's ONLY happenning when the list is viewed as a web part of DFWP, when it's viewed in Datasheet m

Web Part pages in the Pages library don't inherit the Site Icon?


I just noticed that for Web Part Pages created through the UI and placed into the Pages library don't seem to inherit the Site Icon. I tested this in two environments.

I want to keep using the Pages library as I've linked the page to the top link bar, and it highlights it properly if it's in the pages library. However I can't seem to be able to fix the Site Icon on that page. 

Is this a known bug or have I done something wrong?

How to hidde Web part group from ribbon in a publishing and wiki pages?



I want to hide Webpart group for users with special permmision.

I have created this custom action

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
   Location="CommandUI.Ribbon" Rights="ManageWeb">
          Location="Ribbon.EditingTools.CPInsert.WebParts" />


But when I do edit page->insert I still have this group.

Can you help me?



Anonymous Access - Web Part Pages with Web Part Connections

Basically, I have a SharePoint Foundation site I'm building out with lots of lists and libraries being related with lookup columns and metadata.  After getting everything setup and all my items associated with the proper metadata, I created a web part page.  On this page, I put each of my associated lists/libraries with special views to optimize screen usage.  Lastly, I connected them all with web part connections - they all are filtered by the main web part.  The filter works wonderfully, and I can browse to it with an authenticated user, but anonymous users get a Windows prompt every time.

- On the web app, I have no policy set for Anonymous Users, and Anonymous Access ie enabled
- On the Site Collection, Anonymous Users allowed to see the "Entire Web Site"
- On the Site Pages library, Anonymous Users have the "View Items" permission
- On every page, list, and library in the site, Anonymous users have access and can see data except my one page with web part connections
- In the Site Pages library, Anonymous Users can see the page shown as a file
- If I remove all web part connections, then the Anonymous User no longer gets prompted and can see the page

Here is the version of the page without web part connections:


Programmatically Add Web Part to the Wiki Pages


Can someone share great resource to add web part to the SharePoint 2010 wiki pages (not web part pages) programmatically? There seems multiple ways to add the web parts on the wiki pages but finding the position is really tricky...

I would like to see the response other than == http://maxshulga.blogspot.com/2010/06/wikieditpageinsertwebpartintowikipage.html and http://mkeeper.spaces.live.com/blog/cns!60F12A60288E5607!478.entry?sa=556111710


Headline/Title of Web Part Pages


I created a web part page.  Since it is a file, I put no spaces in it's Name when creating the page.  However, now when the user views the page, the page title/headline has no spaces in it.  Is there a way to change this short of going into Designer and changing the code?

I'm on MOSS 2007

There are no mistakes; every result tells you something of value about what your are trying to accomplish.
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