我如何隐含在我的网站中重写URL [英] how can i implient URL rewriting in my website

查看:102
本文介绍了我如何隐含在我的网站中重写URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在y网站typeA和typeB中有两种类型的用户
我必须创建一个指向每个urer的个人资料的链接,在这里他可以在URL中使用他的任何唯一ID(例如名称),例如www.mysite/user/typeA/usernam
此用户名由用户选择(他希望根据自己的意愿显示在网址中)
和脸书一样
请帮助我
我正在使用c#

I have 2 types of users in y website typeA and typeB
i have to create a link to every urer''s profile where he can use his any unique Id (like name) in url eg www.mysite/user/typeA/usernam
this username is selected by user (of his desire what he wants to disply in url)
same as we do in face book
kindly help me
i am using c#

推荐答案

在这里进行 URL重写.在这里阅读:
使用ASP.NET进行URL重写 [ MSDN:URL重写 [ URL路由 [
Here you go for URL Rewriting. Read here:
URL Rewriting with ASP.NET[^]
MSDN: URL Rewriting[^]

OR

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


添加到Sandeep的这个
Added to Sandeep''s, this one, URL REWRITING[^] might also help you.


这篇关于我如何隐含在我的网站中重写URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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