从url打开任何文档.doc,.pdf,.xls而不向最终用户显示url [英] open any document .doc , .pdf , .xls from a url without showing url to end user
问题描述
从url打开任何文档.doc,.pdf,.xls,而不会像我的url一样向最终用户显示url http://www.mydoamin.com/user/1090/1090.doc [ ^ ]
考虑使用URL重写或使用MVC方法.
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[^]
<就像已经说过的那样,请查看URL重写.
在此处阅读:使用ASP.NET进行URL重写 [ MSDN:URL重写 [ URL路由 [ < 框架集 > ;
< 框架 =" MainPage.html" < /frameset >
无论您导航到何处,地址都将保持不变.
参见此处 [ ^ ]了解更多信息.
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屋!