WSS : Multiple Templates DocLib v2.0
I have fix the security issue when running as non-admin user in MultiTemplate DocLib and re-relase it as v2.0
http://workspaces.gotdotnet.com/jywss
Labels: sharepoint
I have fix the security issue when running as non-admin user in MultiTemplate DocLib and re-relase it as v2.0
Labels: sharepoint
The reason for the pull back of v1.1 is that as I tested the doc lib with a non-admin user, an authentication problem arise.
Labels: sharepoint
Note : MultiTemplate DocLib v1.1 has been pulled back due to some issues run running as non-admin.
Labels: sharepoint
I keep hitting an exception when I use the WSS SDK to upload a document to a document library in my WSS app. The error message read
The security validation for this page is invalid.
Click Back in your Web browser, refresh the page,
and try your operation again.
using System.IO;
private void btnUpload_Click(object sender, System.EventArgs e)
{
string targetSite = "http://wssserver/sites/myteamsite";
string docLib = "my doc lib";
byte[] contents = null;
string saveAsFile = Path.GetFileName(FileUpload.PostedFile.FileName);
Stream stream = FileUpload.PostedFile.InputStream;
contents = new byte[(int)stream.Length];
stream.Read(contents, 0, (int)stream.Length);
stream.Close();
SPSite site = new SPSite(targetSite);
SPWeb web = site.OpenWeb();
site.AllowUnsafeUpdates = true;
web.AllowUnsafeUpdates = true;
SPFolder folder = web.Folders[docLib];
folder.Files.Add(saveAsFile, contents, true);
site.AllowUnsafeUpdates = false;
web.AllowUnsafeUpdates = false;
web.Close();
site.Close();
}
Labels: sharepoint
I have created a WSS Document Library list definition that allow user to create a new document from one of the many templates in a drop down menu.
Labels: sharepoint
I have created a WSS Web Part Library Project Template for Visual Studio 2005. It is
Labels: sharepoint
You can insert a Page Viewer Web Part into a WSS site that show the document library of another site by specifying the following URL for the Page Viewer Web Part:
function GlobalInit()
{
try
{
if(window.parent != window)
{
bHostedinPWA = true;
}
}
catch(e)
{
bHostedinPWA = true;
}
Labels: sharepoint
If you find it can sometimes take 20 to 30 seconds to return the web part gallery so that you can drop a web part onto a web part page then this post is for you.
Labels: sharepoint
If you want to make a MS Office documents available on the WSS site, there are 2 ways you can do it.
Labels: sharepoint
I come across this site, WSS FAQ which has a lot of good stuff on Windows Sharepoint Services.
Labels: sharepoint