简体   繁体   中英

Asp.net 2.0 routing

I'm trying to implement a friendlyurl on asp.net 2.0 webform. I was to catch the id on the target page by :

Page.RouteData.Values ["id"]

But i didn't find that.

Is there any alternative to Page.RouteData.Values on asp.net 2.0? Is there any way to implement routing on asp.net 2.0?

Yes, it is possible but you will have to implement some features to get ir working. It is not exactly a limitation, but there is no natively of the technology. Take a look at this link: http://www.simple-talk.com/dotnet/asp.net/a-complete-url-rewriting-solution-for-asp.net-2.0/

You will need to change some configs on the IIS to get it working fine.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM