显示通用网址以完成申请 [英] To show common url to complete application

查看:100
本文介绍了显示通用网址以完成申请的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,

我们正在开发一个基于角色的Web应用程序,在其中为不同的用户定义角色.效果很好,但我想为每个具有不同角色的用户在整个应用程序中显示一个URL.


任何帮助是极大的赞赏.

--Sachin

Dear All,

We are working on a role based web application where we define the roles for different users. It works fine but I want to show a single URL throughout the application for each user who has different roles.


Any help is greatly appreciated.

--Sachin

推荐答案

您要执行的操作称为"URL重写".如果您用谷歌搜索该短语,则这是返回的442,000个链接中的第一个链接:

http://msdn.microsoft.com/en-us/library/ms972974.aspx [ ^ ]

编辑==============

如果您要对我的答案进行1票表决,请告诉我为什么.该评论针对任何投票为1.的人.

并添加到我的原始答案中:

更改URL毫无意义,因为用户没有专心于此-他专心于正在查看的页面.如果您想以某种方式表明用户的角色,请使用母版页来反映该信息.如果您坚持要修改URL,则"URL重写" * IS * 叫什么,这就是您需要在Google搜索中查找的内容.
What you want to do is called "url rewriting". If you google that phrase, this is the first link among 442,000 returned:

http://msdn.microsoft.com/en-us/library/ms972974.aspx[^]

EDIT ==============

If you''re going to 1-vote my answer, tell me WHY. This comment is aimed at whoever voted a 1.

And to add to my original answer:

Changing the URL is kinda pointless, because the user isn''t concentrating on that - he''s concentrating on the page he''s looking at. If you want to somehow indicate the user''s role, use the master page to reflect that info. If you insist on modifying the URL, then "url rewriting" *IS* what it''s called, and that''s what you need to look up pon your google search.




我认为您需要在页面上定义一个 IFRAME 并设置 .aspx 页面的 src 属性,它将在地址中仅显示相同的URL栏,但会根据您的逻辑显示动态页面.

谢谢,
Imdadhusen
Hi,

I think you need to define one IFRAME on your page and set the src attribute of your .aspx page it will display only same URL in address bar but it will display dynamic page according to your logic.

Thanks,
Imdadhusen


这篇关于显示通用网址以完成申请的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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