url在asp.net 3.5中重写或mappin [英] url rewriting or mappin in asp.net 3.5
问题描述
先生,我是asp.net的新手所以请
任何人都可以告诉我在没有mvc项目或其他框架的情况下在asp.net 3.5中重写网址的完整过程。
我的网址是www.xxx.com/searchresult.aspx?catid=X或catid来自数据库,可以是任何数字。所以我想重写网址,如www.xxx.com/searchresult/名称catid ,如
www.xxx.com/searchresult /电脑
www.xxx.com/searchresult/hardware
等...
catid名称根据我的catid可能是任何东西
所以请告诉我在asp.net 3.5中连接sqldatabase的简短示例...
Sir I am new in asp.net so please
can anyone tell me the complete process of url rewriting in asp.net 3.5 without mvc project or other framework.
my url is as www.xxx.com/searchresult.aspx?catid=X or catid is coming from database which can be anything in numbers. So I want to url rewrite as like www.xxx.com/searchresult/name of catid like
www.xxx.com/searchresult/computers
www.xxx.com/searchresult/hardware
etc...
name of catid may be anything according to my catid
so please tell me with a brief example in asp.net 3.5 connecting with sqldatabase...
推荐答案
参考:
1)使用ASP.NET重写URL的示例
2)使用ASP.NET重写URL
这篇关于url在asp.net 3.5中重写或mappin的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!