Is it possible to bind a SharePoint library to a windows folder, so when a file is added the folder an event is created in SharePoint?
Or do I have to write code to watch the folder and add it via a workflow?
View Complete Post
When try to open a folder in a moss 2007 document library in Explorer View, the folder does not open.
I am using IE7 and the path of the folder does not contains more than 100 characters.
Also it opening on few on the machines which has IE7.
Is There any one know how to link document library folder is to external site
I have document library with having some folder in the same ,i have displayed my library in the page as Treeview, so when i click on any of the folder in the library i need to navigate allitems.aspx page i.e default view page of the document library ,the
document library having views.Suppose when i am in other view i have selected folder from library treeview folder is changing but view not navigate to default view.
I have a situation where i need to move the document form one library(LB1) to another library (LB2) thorugh event handler code. For documents which are not available in LB2 it is working fine but a case where document is already existing in LB2 i need to
maintain the version instead , whereas my code is replacing the document already present.
Can anybody help me getting the versioning done through code?
I am trying to create an EventReceiver which gives me the parent folder for currently added documents. For this reason I created an ASPX Page which I display through a "Page Viewer Web Part" on my Sharepoint. Within this
Page I can create new folders in my Document Library. This is working fine. My problem is that I want to create an EventReceiver. The event is firing and I can debug it, but my properties object seems to be missing something. I am not able to get the name
of the parent folder.
Is this because I am displaying my site through a "Page Viewer Web Part"? But that would be strange because I am able to write into my document list.
public override void ItemAdding(SPItemEventProperties properties)
using (SPWeb web = properties.OpenWeb())
string url = properties.BeforeUrl.ToString();
url = url.Substring(0, url.LastIndexOf("/")); URL is ""
1) Should I i
Can anyone help me with the below issue, I am facing this from so long and didn’t figure out solution yet for the same. :(
I want to send an email through SharePoint designer workflow only when a folder is created in document library (not file uploaded/updated event). Please provide me solution about how I can achieve this through SharePoint designer
as don’t have enough coding acquaintance.
How can I change the folder icon in the default document library view? The catch is, I don't need to do this across the board, instead, I need a custom folder icon based upon the individual folder's properties.
I'm aware of the file ..\Web Server Extensions\12\TEMPLATE\XML\DOCICON.XML, but that's not what I need.
My initial thought, was to find the page that sharepoint uses as the template, find the <img> src attribute, and chnage it from
to something like
my GetIcon.aspx page would then look up the folder's properties, and return the expected .gif file. However, I don't know which file is used.
I been trying to add new custom folder content type to the document library programatically in my sandbox environment and it does show up on the document library. But, when I move same code to the almost similar configured SP2010 environment, adding
new folder content type to the document library doesn't show up on the document library's new menu.
Here is the code? Since this code works fine in my sandbox environment, is there any other settings I should check on the server environment which would cause hiding content type on new menu of document library.
static void Main(string args)
SPSite spSite = new SPSite("http://sp2010vm");
foreach (SPWeb spWeb in spSite.AllWebs)
spWeb.AllowUnsafeUpdates = true;
//For each site, cycle through lists
bool isDocLibraryExists = false;
foreach(SPList spList in spWeb.Lists)
if(spList.Title == "Classified Documents")
isDocLibraryExists = true;
if(isDocLibraryExists == true)
//Create new doc library
SPList splist = spWeb.Lists["Classified Documents"];
//Create Content Type
SPContentType documentContentType = spWeb.AvailableContentTypes["Classified Documents Folder"