.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

Document control

Posted By:      Posted Date: September 29, 2010    Points: 0   Category :SharePoint

I would like to be able to accomplish the following tasks in Sharepoint 3.0 and wonder if it is possible.

1.       A document is created in Word by a member of staff and needs to be uploaded to a specific folder on Sharepoint to await authorisation.

2.        This folder and its contents can only be accessed by the Team Leader.

3.       The Team Lead

View Complete Post

More Related Resource Links

Reg File Upload control to upload files from document library


In Field Upload control if we click browse button it allow us to search file in our hard disk but now as per my requirement as soon as user clicks ‘Browse’ button it should point to the document libraries and their files in site.Let me know how could i achieve this?

Thanks & Regards,


How to open an excel document in a webbrowser control

Hi,  I have an XBAP app that we would like to be able to open an Excel doc in a WebBrowser control but instead we always get prompted to opne in Excel.  Is this possible?  Here is what I have tried.  The reports are in SharePoint but we want to show them in our own application not SharePoint.       System.Windows.Forms.WebBrowser ReportView = new System.Windows.Forms.WebBrowser();     WindowsFormsHost ReportViewHost = new WindowsFormsHost(); ReportView.Navigate(_fileName,   "_self", postBytes, "Content-Type: application/vnd.m?s-excel"); ReportViewHost.Child = ReportView;   _filename would be something like http://localhost/shared%20documents/myfile.xslsx Thanks for any suggestions. Rhonda

Control User Access to Document Workspace

I have set up a document workspace section with several folders and files.  I have set up a group that has full control and set up a group with contribute.  Now I would like to set up several groups that will only have access to specific portions within the site for contribute.  I see where I can set up group overall, but have not seen where to narrow down to spefici folders/files for group to view.  Do I get to the specific folder or document and then set up access or do it from Home?   Any help is appreciated! Peter

Possible to Control Depth That OPENXML Parses xml document

I'm trying to parse a survey and only want to parse to a particular depth in the XML.  I want to preserve the hierarchical structure so that I can import it into SSAS and build a cube solution around the survey and the survey results. The structure of the xml follows this patten: <Survey Name="Medicare Inbound/Outbound Disenrollment Survey NY/NJ English"> <Introduction Text_English="Created by dcho on 3/23/2010." /> <   Question Tag="Inbound/Outbound" Type="Choice" Min="0" Max="40" Choices="inbound|outbound" Hint="" Question_English="(Select Inbound/Outbound and click Next)" /> <   Question Tag="Outbound Introduction" Type="Choice" Min="0" Max="40" Choices="yes|no" Hint="" Question_English="Hello may I speak with (disenrolled member)?&#xD;&#xA;&#xD;&#xA;(Select choice from dropdown and click Next)"> <   Condition Tag="Inbound/Outbound" Comparison="EQ" Value="outbound" /> </   Question> I only want to descend to the Question attribute so that I can pick up its Tag element.  I do not want to pick up the Condition attribute and its corresponding Tag element. I am using the following query,

ASP:Upload control . Uploading into a SharePoint Document Library Subfolder and FILE NOT FOUND error

RE: ASP:Upload control . Uploading into a SharePoint Document Library Subfolder and FILE NOT FOUND error Two Issues, apparently unrelated. I have subfolders like this /ApplicantDocuments/20 and /ApplicantDocuments/21 (where 20 and 21 are my subfolders and ApplicantDocuments is my library. 1. The below function is erroring with file not found, but I confirmed I'm sending the fully qualify path (i.e c:\test.txt) to System.IO.FileStream content = System.IO.File.Open(documentFileName, System.IO.FileMode.Open); 2. Even if it worked, looking at the code, I'm not using argument foldername.  I'm passing 20 to the argument. How can I make sure it uploads into subfolder 20 of ApplicantDocuments? Thank you.     Just testing in test environment. Will tighten code once it works.   public void UploadDocumentToSite(string foldername, string documentFileName) {      SPSite siteCollection = new SPSite("https://xxxxxx");      SPWeb web = siteCollection.OpenWeb();      //SPSite.AllowUnsafeUpdates = true;      //Web.AllowUnsafeUpdates = true;      string Lib = "ApplicantDocuments";      SPFolder destFolder = web.GetFolder(Lib);      sendmail(documentFileName+" "+foldername);  

Document control with approval process

I need a mechanism to upload documents, in which has up to 12 different approval levels, dependant on value and cannot be escalated until the lower level's approve.  I need the ability to send email notification that a document is pending their approval as well as the ability to see at any given moment, where the document is in the approval cycle.

Question about Workflow in Document Library with version control and check-in/out enabled



I use Sharepoint Foundation 2010 and have a workflow to set some metadata in a document with version control and check-in/check-out enabled (approval content is not enabled because anyone in the team can be a possible editor of the document).

My metadata is:

- a generated doc id with text+id (example P&D_1)

- a calculated status based in version: minor version = "on development" and major-version="published/approved"

I defined two workflows:

1) is called when item is created to define id and status.

2) is called when item is updated and status is re-calculated if version is major. (It is called in every item change, not only when user wants to publish a major version, because this option doesn't appear in SPD)

I noticed that sharepoint workflow must do a check-out to be able to update metadata, and because of this the version number is incremented. When version is minor, I don't care, but when version is major I have a problem, because just after publishing the version 1.0, the workflow changes metadata and the version to 1.1. and 1.1 means that the document is not approved anymore...


a) Isn't it possible to do the workflow to check-in and override the last/current version to not generate a new version??

b) Or is it possible to stop versi

Granular control for document management


We are using a product from NSI called AutoStore.  The way we have it configured, it monitors an e-mail address, and as new e-mail arrives, the message body, as well as all attachments, are converted to PDF, renamed, and uploaded to a SharePoint document library.  The end goal is to provide external users a way to access uploaded documents through the SharePoint web interface, but restrict them from seeing anything in the document library other than their own documents.  Is this possible?  Right now they can see their own documents, and other users' folders, but cannot see other users' documents within those folders.



Sharepoint Document Version Control



I am wanting to migrate a number of existing documents into sharepoint so they can be version managed.  However, most of these documents are already up to version 10 etc (on a manual system), I am wanting to start the versioning in sharepoint at a particular version instead of 1.  Has anyone done this?

Error When a Word Document is displayed in WebBrowser Control



We are using a WebBrowser control to display an MS Word document in a form. This was working fine for a long time, and now we tried to install this application in a new server. Now we are facing an issue. When we try to open the word document by using WebBrowserControl.Navigate method, it is asking the Open/Save dialog box, which is typically displayed when we download a file. Then if the user clicks on Open button, we are getting an error "Windows cannot find 'UsersTempFolder\1\Temp\MyDoc.DOCX'. Make sure you typed the name correctly, and then try again. To search for a file, click the Start button, and then click Search.". Please note that UsersTempFolder\1\Temp\MyDoc.DOCX is NOT the path I have given in Navigate method. Also, if I click Save in open/save dialog box, I can save to a location and open it.

I don't have direct access to this server, but if I can believe the words of support person, every configuration is set same as our old server. Here is the details.

.NET Framework 3.0

MS Office 2003

Internet Explorer 6 SP2.

Could any one please help me to solve this issue? Any help is very much appreciated. Please let me know if you need any other details.



2010 SharePoint global setting for document Library version control?


Apparently new Document Libraries created in Sharepoint are no longer set up the way we would like as far as version control.  Is there any way to set up SP so that any new document library created has specific settings, through Central admin control?

Jack Galante Sr Systems Engineer

i do see that previous versions this was not possible, but was curious if they changed this in 2010?

Find Control inside a View of Multiview using Javascript (document.getElementById)



i am using the multiview control inside a page and i am trying to find a control using the javascript function document.getElementById. My Problem is that the function returns null cause it cannot find the control. When i open the code of the page from the browser the active view is not rendered so I think thats the reason why I am getting a null value from the function. 

On the HTML code is rendered only the first view or the view that is activated on page load.

Is there any way to find a control inside the view using javascript? or I am doing something wrong?

Thanks a lot.

Multiple Fileupload into the sharepoint document library using Fileupload control inside gridview



how to upload multiple files to the sahrepoint document library using fileupload control inside the gridview.?

this is my form design:


<asp:Gridview id="gridview" runat ="server" autogentatecolum="false">


<asp:TemplateField Headertext="3DFinal" runat="Server">


<asp:FileUpload id="Fileupload1" runat ="Server"/>



<asp:TemplateField Headertext="2DFinal" runat="Server">


<asp:FileUpload id="Fileupload2" runat ="Server"/>



<asp:TemplateField Headertext="2Conceptaul" runat="Server">


<asp:FileUpload id="Fileupload3" runat ="Server"/>







<asp:Button id="Save" runat="server" Text="Save" onClick="btsave-Click"/>



If i click the save button the files should go to the sharepoint document library?

i need to uplaod multiple files to the document libray using file upload inside the gridview..

any one know about this file

Multiple file upload to the sharepoint document library using file upload control inside the gridvie


how to upload multiple files to the sharepoint document library using fileupload control inside the gridview.

form design is

<asp:GridView id="gridview1" runat="server"  autogenteratecolumn="false">

<asp:TemplateField HeaderText="3DFinal">


<asp:FileUpload id ="Fileupload" runat="Server"/>



<asp:TemplateField HeaderText="2DFinal">


<asp:FileUpload id ="Fileupload2" runat="Server"/>



<asp:TemplateField HeaderText="Final">


<asp:FileUpload id ="Fileupload3" runat="Server"/>





<asp:Button Id="Buuton1" runat="server" text="Save"/>

if i click save button files should go to my sharepoint document library.

if any one know pls help me...




Working with SharePoint document libraries

Document libraries are collections of files that you can share with team members on a Web based on Microsoft Windows SharePoint Services. For example, you can create a library of common documents for a project, and team members can use their Web browsers to find the files, read them, and make comments. Users with Microsoft Office 2003 can check out and edit the files as if they resided on a local or network drive.

By default, your team Web site comes with a built-in document library named Shared Documents, which is listed on the Quick Launch bar as well as on the Documents and Lists page.

Adding Dynamic Rows in ASP.NET GridView Control with TextBoxes and with Delete functionality

In my previous examples, I have demonstrated on how to add dynamic rows in GridView control with TextBoxes and how to save the values into the database. Now, seems that most of the developers are asking if how to add a delete functionality with it. So in this example, I'm going to show on how to delete a certain row in the dynamic GridView with TextBoxes.

jQuery $(document).ready() and ASP.NET Ajax asynchronous postback

Many call it the ASP.NET jQuery postback problem, but using the technique below should make it no problem anymore. $(document).ready() isn't called after an asynchronous postback. What this means? You lose the functionality that should be executed within $(document).ready() after an UpdatePanel rendered its contents after an asynchronous postback.
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