Quantcast
Channel: Security
Viewing all articles
Browse latest Browse all 4737

Opening a Word Document in MVC4 in new WIndow Using the Server URL

$
0
0

In my intanet site i have a list of documents grid, when the user clicks the on any document i have to open the document in a new window (for PDF, Tiff , jpg, etc.) but for office documents it should close the window after the document is opened when the user clicks it gets the url to the document on the server . and pass that to the client side and on the client side using the

url = url= "https://example.com:7541/document&id={2EE6AD9B-D66B-402A-AC5D-64405182CEB1}"

Window.open(url);

am opening the window but the window remains open after the office documents are opened, user has to close to manually this is bothering the users and also for office documents every time a document is opened the user is prompted for winodws credentials.

is there any other way i can open a docuemnt using the server url and mange the window and also it doesnt propmt the user for windows credentials.


Viewing all articles
Browse latest Browse all 4737

Trending Articles