.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

I want to add a button of my documents to site

Posted By:      Posted Date: September 17, 2010    Points: 0   Category :SharePoint
Hi,   I am tring to add abutton in site to go to my documents, but it has space in it and it is not working by using the below code <input type="button" id="btnMyDocuments" value="Go to My Documents" alt="Go to My Documents" onclick="OpenMyDocuments()" />   <Script Language="VBScript"> Sub OpenMyDocuments() Set oShell = CreateObject("Wscript.Shell") Set oSFolders = oShell.SpecialFolders sDesktop = oSFolders("my documents") oShell.Run  smy documents Set oShell = Nothing End Sub </Script>   But if try to use desktop it works(because it doesnt have space in it) by using the following code   <input type="button" id="btnMyDocuments" value="Go to My Desktop" alt="Go to My Desktop" onclick="OpenMyDocuments()" />   <Script Language="VBScript"> Sub OpenMyDocuments() Set oShell = CreateObject("Wscript.Shell") Set oSFolders = oShell.SpecialFolders sDesktop = oSFolders("Desktop") oShell.Run  sDesktop Set oShell = Nothing End Sub </Script>    Can any one help me, weather i am doing any mistake   Thank You      

View Complete Post

More Related Resource Links

How to stop unauthorized users from sending documents to a Records Center site?


I can't find a way to stop unauthorized users from sending documents to a Records Center site. Can someone please help me? Do i need to configure anything to restrict it to the members of the web submitters group?

I'm still using MOSS2007


The impossibility of doing things depends on your will to do it.

Efficient Way to find how many documents were modified in a site in the lastmonth-CAML Queries

Which is the Best way to find how many documents were modified in a Site in the last month,(not at document level) Using Caml query which is the best method (using U2U builder or some thing else)   Please share your thoughts. Thank you    

Using a List View web part to display documents from multiple document libraries from different site

Hi there, I am trying to have one web part display documents (or list items) from different document libraries (or different lists) from different site collections. I have achieved this under a single site collection using Data View Web Part (using SPD). I have also achieved displaying a single document library (or a list) from a different site collection by using List View Web Part. but I am not sure how to get my head around displaying documents or list items from different document libraries or lists across site collections. I have thought of using SPSiteDataQuery or ListViewByQuery, but they all seem to focus one site collection at a time. If any of you have done this before, please share your best practice on this one with me. Much appreciated. Clark

Word 2007 documents won't open from Sharepoint Services site

I have a Sharepoint Services 3.0 site that contains shared documents, Word, Excel, PDF, etc.  I cannot open Word documents directly from the shared documents portal.  Other file types like Excel adn PDF open fine.  It's only Word that has the issue.  I'm using Word 2007 and it doesn't matter if it is a .docx or a .doc, both act the same.  Word tries tro open, then just sits there....no error message or anything.  Any help would be greatly appreciated!

cannot upload documents to sharepoint site



If I try to upload a document (for example make a new document in word and try to save it to sharepint site) to Sharepoint Foudation site, then I get an upload error.

Only one error event occurs in Application Log (Sharepoint Foundation Server)


Log Name:      Application
Source:        System.ServiceModel
Date:          28.09.2010 9:57:59
Event ID:      3
Task Category: WebHost
Level:         Error
Keywords:      Classic
User:          DOMAIN\user
Computer:      server.domain.name
WebHost failed to process a request.
 Sender Information: System.ServiceModel.ServiceHostingEnvironment+HostingManager/20726372
 Exception: System.ServiceModel.ServiceActivationException: The service '/_vti_bin/cellstorage.svc' cannot be activated due to an exception during compilation.  The exception message is: A binding instance has already been associated to listen URI 'http://server.domain.name/_vti_bin/cellstorage.svc/CellStorageService'. If two en

Hide ribbon, Hide site content/recycle button. Caledar overlay. Document publishing. Other questions


I have a 2010 farm operational and working well. I had a few questions.

(1) How to disable ribbons from appearing on the top (for anonymous sites).

(2) When I move the mouse over a tab in the top bar, how do I display a banner. It was easy enough in 2007, but I am not sure in 2010.

(3) I have disabled quick launch. But it still displays all site content and recycle bin. Is there a way to not to show those.

(4) Calendar overlay - Is this to display multiple calendars in one calendar using different colors to differentiate them. But if I had calendars in different site collections, then I guess due to the gallery boundary, I cannot calendars from multiple site collections.

(5) Document publishing - For some reason, this was easier in SPS 2007. I am not able to get it to work in 2010. Basically update a web page dynamically from a word document. Could anyone kindly provide a link. Also, would I be able to update a page in one site collection from a document from another site collection.

(6) Is it possible to move a folder/doc from one document library to another in one site collection (without webdav). Further, can I move a document library from one site collection to another.

Please advise. Sorry if I asked too many questions in the same post. I am newbie and this is my first post.



Is it possible to add a custom menu group to the Site Actions button?


I know I can use a Custom Action to add a new menu item to my Site Actions button .

Is it possible for me to add a new menu group to the Site Actions button? For example, like the OOB Site Settings menu group, which then extends out to offer additional items such as "Modify All Site Settings" etc.

Provision Shared Documents List View Web Part in Site Template


I'm trying to add the Shared Documents "web part" that is part of the default Team Site template to a custom site template.  However, from what I've found this is not really a web part for Shared Documents, but a generic List View web part with Shared as the data source.  Also, I don't see where this is listed in the onet.xml file of the Team Site template (which I believe is the "sts" template, correct?).  Also, you cannot export/download the xml for this webpart from the page and when it is viewed via SP Designer, the way it is defined is not supported in an onet.xml file. 

So how do you add this webpart to a site template?

How to find number of documents uploaded to each sharepoint site?


How can I determine how many documents are uploaded to each sharepoint site?

why all buttons under documents disabled when we add custom webpart to a share point site?


I am adding buttons under shared documents.i am using vs2010 for that.now i am add custom webpart to the pite all buttons under the ribbon are disabled.

why all buttons under  documents  disabled when we add custom webpart to a share point site?

Locate new button in the site action menu


I added a new button to the site action menu, but the button was placed  at the end of the list.

Can I locate the button under the New page button.

Please advise




Sharepoint Shared Documents webpart "go to parent folder" button missing



I'm trying to find a way to move to parent folder inside Shared Documents webpart .

In this tutorial it's only mentioned the SharePoint-wide UP button, but is there a way to move to parent folder (of the document library, of course) inside the non-maximized Shared Documents webpart?

Thank you

Edit this task button not appearing in Sharepoint Workflow documents



I have a simple custom workflow where the user uploads a spreadsheet into Sharepoint, upon which a workflow is kicked off for approval. However, once the document goes to the approver, the edit this task button is missing from the top of the excel. What is going wrong?

This only happens on this particular subsite. We don't have this problem anywhere else.

How to publish all the draft documents in SharePoint site Collection




I have filtered all the draft documents using the “All Draft Documents” view in our site collection. It gives me a good list of draft documents in site collection.


Unfortunately, I’ am not able to publish all Draft documents at one shot as the “Approve” option is greyed out.


Is there any way to approve all the documents at one time instead of one at a time?


Unable to save Office 2007 document to SharePoint My Site Personal Documents document library


...also when Office documents are saved to document library they open as Read-only and cannot be saved back to the same document library.

This only happens in my production SharePoint 2007 environment from client XP and IE7 machine.  It does not happen in developement environment (which mirrors production) from client XP/IE7 machines.

Save works fine to SharePoint document libraries from client Win 7 and IE8 machines in both production and development environments.

This only happens when attempting to save to a My Site Personal Documents document library.  Any other document library this behavior does not exist from XP or Win 7 machine.

What settings controls ones ability to save to a personal My site document library.  What setting could be different between prod and dev installations?  It only happens

Changing the graphics on the home page of a SharePoint site

When you create a site in Microsoft Windows SharePoint Services by using the default Team Site template, the home page includes two default graphics. A Windows SharePoint Services graphic appears in the body of the page, and a picture of a house in a circle appears near the site title. You can change these graphics to customize your site. Changing the smaller graphic requires a Windows SharePoint Services compatible Web page editor

Take a tour of your SharePoint site

What is a SharePoint site for?
A SharePoint site is a Web site that provides a central storage and collaboration space for documents, information, and ideas. A SharePoint site is a tool for collaboration, just like a telephone is a tool for communication, or a meeting is a tool for decision making. A SharePoint site helps groups of people (whether work teams or social groups) share information and work together. For example, a SharePoint site can help you:

Coordinate projects, calendars, and schedules.
Discuss ideas and review documents or proposals.
Share information and keep in touch with other people.
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