Geeks With Blogs

Tangible Thoughts SharePoint, MOSS? and all the other questions

Lately I have discovered a quirk with document libraries in WSS v3 and MOSS that is not very consistent.

Basially the problem I am seeing is that SharePoint doesnt consistenly handle query parameters passed to aspx pages store in document libraries.

For instance if you had a page in a document library called MyPage.aspx, and if you were to point it in your browser as

http://server/[site]/Document Library/MyPage.aspx?MyQueryParam=Value

your page would load only some of the time. More of than not SharePoint complains that "Item MyPage.aspx?MyQueryParam=Value does not exist.." Its almost asif SharePoint is looking for an item named MyPage.aspx?MyQueryParam=Value  in the document library.

Solution - none that I know at the moment

Workaround - dont store your aspx/webpart pages in a document library if you want to pass query parameters to it. Store them on the root of you site.

Issue with Work Around - You wont be able to store MetaData (what would previously been stored in Columns of the Document Library) against your aspx page.

Solution - Store them programitcally using the Properties collection of the SPFile object.

Programatically? Yep programatically, however I do have a tool that helps me out. It lets me add and update properties in the Properties collection of the SPFile object. This uses the SPObject model and hence would need to run on the server. If anyone is interested I could clean it and put it up online for consumption.

tags: , , , , , ,

Cross-posted from

Posted on Thursday, September 28, 2006 9:33 PM SharePoint | Back to top

Comments on this post: YASQ - WSS/MOSS B2TR Document Library Page Hosting Quirk

# re: YASQ - WSS/MOSS B2TR Document Library Page Hosting Quirk
Requesting Gravatar...
yeah, i ran into the same problem when adding 2003 webparts to moss. i've worked around it by writing/reading the url parameters into/from a isn't the cleanest of all solutions, but it works and is not a lot of work to do... i hope though they fix this bug in the rtm release of moss!
Left by robby on Oct 20, 2006 8:36 AM

Your comment:
 (will show your gravatar)

Copyright © Tariq | Powered by: