in Sharepoint 2010 its possible by using CilentContext but i dont think it is possible in 2007 version ....
Manoj_Leo
Posts
-
Empty SharePoint Recycle bin using vbscript/javascript/vba -
Change a webpart from another webpartCheckout this http://msdn.microsoft.com/en-us/library/ms469765.aspx
-
Change a webpart from another webpartCheckout this http://msdn.microsoft.com/en-us/library/ms469765.aspx[^]
-
how to restrict user to upload only .docx or doc files in document libraryif you want to block .doc and .docx files for all the document libraries in sharepoitn site.. Go to central admin and add these two file extensions as blocked file type for your site collection... If you want to block .doc and .docx file only for one document library than write a custom event handler on itemAdding and check for the file extension if extension is .doc or .docx cancel teh event ............
-
How to add images and refer to them from a web part in SharePoint 2007Hi It depends on the which visual Studio you are using VS2010 provides this option for SP2007 also the only difference is .. in case of SP2007 it use to map "12" hive "images" folder and for SP2010 it use to Map "14" hive "images" folder. Cheers :)
-
How to add images and refer to them from a web part in SharePoint 2007add a Image mapped folder in your VS solution. Add all you images there and deploy the solution ..follow the below mentioned article from MSDN http://blogs.msdn.com/b/vssharepointtoolsblog/archive/2010/03/12/deploying-files-using-mapped-folders.aspx
-
Check who has taken the handle of the text file.Hi Check this out it might help you..i hav'nt tried it but looks like this is what you are looking for.. fpound this solution while going thrw some blog :) posted by :-Gennady Zabrodsky It is very complex way to invoke Win32 from C#. You should use tool Handle.exe from http://technet.microsoft.com/en-us/sysinternals/bb896655.aspx After that your C# code have to be the following: string fileName = @"c:\aaa.doc";//Path to locked file Process tool = new Process(); tool.StartInfo.FileName = "handle.exe"; tool.StartInfo.Arguments = fileName; tool.StartInfo.UseShellExecute = false; tool.StartInfo.RedirectStandardOutput = true; tool.Start(); tool.WaitForExit(); string outputTool = tool.StandardOutput.ReadToEnd(); string matchPattern = @"(?<=\s+pid:\s+)\b(\d+)\b(?=\s+)"; foreach(Match match in Regex.Matches(outputTool, matchPattern)) { Process.GetProcessById(int.Parse(match.Value)).Kill(); }
-
Masterpage changesTo remedy the problem, go to Site Actions > Site Settings > Modify All Site Settings > Master Page and Page Layouts. This takes you to the master page gallery. Now go to Settings > Document Library Settings > Permissions for this Document Library and give the user (or the group he belongs to) read permission.