Click here to Skip to main content
15,886,137 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all

problem with web browser control in c sharp .net

I have a code where web browser will will navigate to one of the xls file (direct link) and file download dialog appears and i m handling that process, this is fine when i execute on my local machine
but when deployed on the other machine the xls file opening in browser only rather the file download dialog box appears.
can u please help me i need that file download dialog box should appear

Thanks in advance

regards
003
Posted
Comments
Sergey Alexandrovich Kryukov 18-Jul-11 2:54am    
I'm reading it third time and cannot see the difference. What does it mean "opening in browser only"? What does it mean "navigate to one of the xls file? What's "direct link"?
--SA
shrikant003 18-Jul-11 3:04am    
direct path is like this www.abc.com/downloads/aaa.xls ,

browser is navigating to www.abc.com/downloads/aaa.xls which should open file download dialouge box rather to be disply the file in broweser
OriginalGriff 18-Jul-11 3:10am    
Without seeing the code, it is really impossible to answer - post relevant code fragments (not your entire file) so that we have a clue what we are working with!
Use the "Improve question" widget to edit your question and provide better information.

1 solution

I believe it depends on how the browser is configured to handle file types. I has got nothing to do with the WebBrowser control or your application. This[^] link might help you.
 
Share this answer
 
Comments
shrikant003 18-Jul-11 3:11am    
Open My Computer.
On the Tools menu (or the View menu), click Folder Options (or click Options).
Click the File Types tab.
In the Registered file types list, click the specific Office document type (for example, Microsoft Excel Worksheet), and then click Advanced (or click Edit).
In the Edit File Type dialog box, click to clear the Browse in same window check box (or click to clear the Open Web documents in place check box).
Click OK.


ttried this but no luck

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900