从url打开任何文档.doc,.pdf,.xls而不向最终用户显示url [英] open any document .doc , .pdf , .xls from a url without showing url to end user

查看:84
本文介绍了从url打开任何文档.doc,.pdf,.xls而不向最终用户显示url的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从url打开任何文档.doc,.pdf,.xls,而不会像我的url一样向最终用户显示url http://www.mydoamin.com/user/1090/1090.doc [ ^ ]

解决方案

考虑使用URL重写或使用MVC方法.


<就像已经说过的那样,请查看URL重写.

在此处阅读:使用ASP.NET进行URL重写 [ MSDN:URL重写 [ URL路由 [ < 框架集 > ; < 框架 =" MainPage.html" < /frameset >



无论您导航到何处,地址都将保持不变.

参见此处 [ ^ ]了解更多信息.


open any document .doc , .pdf , .xls from a url without showing url to end user like my url http://www.mydoamin.com/user/1090/1090.doc[^]

解决方案

Think about using URL rewritting or using the MVC approach.


As already said, look at URL Rewriting.

Read here: URL Rewriting with ASP.NET[^]
MSDN: URL Rewriting[^]

OR

Read about, In ASP.NET 4.0: URL Routing[^]


Make the main index page a frameset.

<frameset>
<frame src="MainPage.html">
</frameset>



No matter where you navigate to, the address remains the same.

see here[^] for more info.


这篇关于从url打开任何文档.doc,.pdf,.xls而不向最终用户显示url的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆