在asp.net中的网址问题 [英] Problem in url wirting in asp.net

查看:84
本文介绍了在asp.net中的网址问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿伙计,



我的客户有问题



他想要的注册用户感觉这个网站属于他



他希望用户名显示在URL中,然后在用户之后添加任何动作int网站姓名



考试:



如果网址是


www.website.com



用户登录后



www。 wensite.com/user_name



,之后会添加网站上的任何动作



例如:



www.website.com/user_name/products

www.website.com/user_name2/products

www.website.com/user_name3/products



并从页面url(products.aspx)删除.aspx将是产品



ETC.



任何想法????

Hey Guys,

i''ve a problem with my client

he wants the registerd user to feel as this site belongs to him

he wants that the user name is displayed in the URL and any action int web site after that is added after the user name

Examle:

if the url is

www.website.com

after the user is logged in

www.wensite.com/user_name

and any action in the website will be added after that

for example:

www.website.com/user_name/products
www.website.com/user_name2/products
www.website.com/user_name3/products

and to remove .aspx from the page url (products.aspx) will be products

ETC.

Any Ideas????

推荐答案

你该走了用于URL重写。



1. [MSDN ] ASP.NET中的URL重写 [ ^ ]。

2. ASP.NET Web窗体的URL重写 [ ^ ]。

3. 使用ASP.NET重写URL [ ^ ]。

4. 用ASP.NET重写URL <[a href =http://weblogs.asp.net/ scottgu /存档/ 2007/2月2日6 / tip-trick-url-rewriting-with-asp-net.aspxtarget =_ blanktitle =New Window> ^ ]
You should go for URL Rewriting.

1. [MSDN] URL Rewriting in ASP.NET[^].
2. URL Rewriting for ASP.NET Web Forms [^].
3. URL Rewriting with ASP.NET[^].
4. Url Rewriting with ASP.NET [^]


这篇关于在asp.net中的网址问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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