Home
TeamSite
How can I use iManage.dll to link to worksite documents?
MartinSpalding
I need to build an asp.net visual c# web site that takes a query string to open a worksite document using impersonation as its security.
I have written the below code to retrieve the users login details using impersonation but how do I use iManage.dll to connect to a particular document in worksite (referenced by the query string information)?
protected void Page_Load(object sender, EventArgs e)
{
//Pull back current users login details and show in a text box
//TextBox1.Text = System.Security.Principal.WindowsIdentity.GetCurrent().Name;
System.Security.Principal.WindowsImpersonationContext impersonationContext;
impersonationContext = ((System.Security.Principal.WindowsIdentity)User.Identity).Impersonate();
WindowsIdentity currIdentity = WindowsIdentity.GetCurrent();
string NtAccountName = currIdentity.Name;
TextBox1.Text = NtAccountName;
impersonationContext.Undo();
}
Thanks
Find more posts tagged with
Comments
dabird
If you can use trusted login, you can make use of WorkSite Web's web controls out of the box to handle displaying a document in a web environment. All you would have to do is configure trusted login on your DMS, drop the web controls on an ASPX page and from your app point to that page and pass the appropriate document moniker in the query string. The web control will then handle the authentication and rendering of the document's properties. You will also have all menus available to interact with the document. The web controls are documented in the WorkSite Web Application Integration Toolkit, which is shipped with WorkSite Web.
MartinSpalding
Thanks for your reply.
I obviously want to carry over document security into the web browser, will trusted login do this?
Carbon
Yes. Once you are utilizing the API's, security is maintained for as long as you are communicating with the DMS Server.