I have a link http://Test/Folder/file1.xls which is working fine But if I typehttp://Test/Folder/file1.xlsx it is not working. It is giving me a file not found error.So when I read online every one is suggesting me to add the correct MIME type at tyhe IIS level. I don't know if that's the correct thing to do.I opened IIS and navigated to folder FOLDER right clicked and selected properties -> HTTP Headers -> MIME Types->New -> Extension -> .Xlsx-> What should i be entering for MIME type?
Is it possible to Open a new browser tab/window using c#. I have query string info I don't want to put in a hidden field due to it showing on the client side. I do save the data in ViewState and encrypt the viewstate; however, I don't know how to access that information on client side.
I can access the viewstate data fine on Server Side but I need to open the new browser window on server side in order to access the ViewState. I may be wrong. Is there a trick to this?
I did find a way; however, on any other click after the initial click everything goes to a new window:
I have a website 1 developed in .NET. It supports IE browser only. I have another website which runs in Safari browser. Now we have to re-direct to this Website 2 from website 1. WebSite 2 has to open in Safari only. Can i open a different browser from .NET code. JScript Window.Open() would open in default browser. How can i mimic 'open with' option?
From pageA, clicking a button to open pageB which display a crystal report. User can only use browser back button. How to open pageC from pageB? Can I add code in pageB close (if there is a page close event) or make back button in browser to open pageC instead of pageA?
i have a gridview and in that there is a dropdown and hyperlink hyper link href changes accordingly by dropdown thats working fine... i need to open the file of any type in browser/Application e.g .doc should open in ms word/browser, .xls should open in ms excell and .pdf should open in acrobat reader, if application is not installed on the machine it should ask to save it.
i have a folder in d:program filesCRM...Library and i want to access these files from it after searching on Google i come to know its impossible to access files from different drives and folders other than virtual directory?? so i made virtual directory of library(it has a small white icon on the folder in iis) under my localhost [URL] website when i access any file e.g. [URL] it just throws error resource could not be found???
I need to implement a "preview" functionality where people make changes to a form, click a button and a pop-up window displays the preview while the original form retains the user's changes in the various <textarea's. Right now, the preview is working, but when they come back to the form, their changes are gone, the page has refreshed. How do I prevent the page from refreshing? I need to go to the server to get the URL to the preview page.
I have the following hyperlink code that opens a new browser window to display a page. The page (browser) opens not full size (maybe something like 500x500). How can I modify this code to make the new browser window open full-size?
I can't use RegisterStartupScript('window.open...), because Chrome blocks the popup without even informing the userI can't use "onclientclick=window.open(..." in the markup, because I have to invoke code in the button click event handler before opening the popup window.I can't expect every user of the website to add the site as an exception in Google Chrome's popup blocker, since they'll assume it's an error on the website and not with the popup blocker