来自数据库的动态URL映射 [英] URL mapping dynamic from database

查看:129
本文介绍了来自数据库的动态URL映射的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我想从SQL数据库为基于Travel的应用程序创建动态URL.如:

当我在数据库中插入新酒店时,其url应该是这样的:/hotel_taj_place_delhi而不是hotel_id = 12.
我知道通过Web配置文件进行的网址映射.但是,我在网络配置中为每家酒店编写映射的URL浪费了时间.

请让我知道如何执行此操作.
(已删除的营销垃圾邮件)

Hi All,


I want to make dynamic URL from SQL database for my Travel based application. Such as :

As i insert a new hotel in my database that''s url should be like this : /hotel_taj_place_delhi instead of hotel_id=12.
I know url mapping through web config file. But it''s wastage of time that i write mapped URL for each of my hotel in web config.

Please let me know how to do this.
(deleted marketing spam)

推荐答案

在MSDN上查看此文章:
http://msdn.microsoft.com/en-us/library/cc668201.aspx [ ^ ]

确保检查出名为向Web窗体应用程序添加路由"的部分.

干杯.
Have a look at this article on MSDN:
http://msdn.microsoft.com/en-us/library/cc668201.aspx[^]

Be sure to check out the section called "Adding Routes to a Web Forms Application".

Cheers.


这篇关于来自数据库的动态URL映射的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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