If you want to open the excel file in the same window
the following steps can be followed:
1. Go to Windows Explorer.
2. On the Tools menu, click Folder Options, and then click on the File Types tab.
3. From the Registered file types list box, select the XLS extension, and then click Advanced.
4. In the Edit File Type dialog box, set the Confirm open after download to selected.
5. Make sure the Browse in same window option is not selected, and then click OK.
The above steps will make sure that we get the dialog box as shown above. However, since this is an option set at the client computer, these steps cannot be mandated to be followed in every computer that browses the application.
So, from the code level, we must make sure that the excel file is opened in a separate window. One possible option for this is to Save the file to the web server, and then open the file in a separate window.
In the above method, the file is saved to the Web Server inside the folder "Excel". Of course, this folder must have write permissions for the user. But it will definitely ensure that the excel file is opened in a new window in the client computer.
Thanq so much for ur response.
By the code which u provided, the excel file content is rewriting to asp web page. We can't able to do any manipulations and edit the data there rgt? But i want the whole excel file has to open in web page n moreover have to enter some input and will hv to do some manipulations based on formulae cells. Is thr any chance to achieve this?
Hope u understand my pblm.
hello.. I realy need to open the original excel file through a browser in a different computer and edit the details.When am trying using the HREF procedure, it is opening a copy of the file. How do I go about this please??