开发者

downloading not working for ipaddress while works fine for localhost

I had code on Download.aspx for downloading different type of file like doc, xls, pdf etc. I usually call the page to download a file. In one of my instance i am call开发者_StackOverflow社区ing this from a java script code which works fine for http://loaclhost/tp/howwuworks/howwuworks.aspx but if i put ipaddress instead of localhost then its not working.


Maybe you don't have public ip. However, if you can see your page by ip, it is not the issue.


The problem is not with the code but its with the IE security settings. The solution for this is to enable the File download promping in IE security settings.

Goto Tools -> Internet Options -> Security Tab ->

Click on Custom Level Button ->

Under Downloads section enable "Automatic prompting for file downloads"

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜