从代码重定向到页面并调用另一个页面的不同母版页时出现问题. [英] Problem while redirecting to page from code and having call of different master page of another page.

查看:73
本文介绍了从代码重定向到页面并调用另一个页面的不同母版页时出现问题.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我键入了登录用户无法访问的页面的URL,因此在代码中,我通过
将其重定向到其适当的仪表板 Response.Redirect(RedirectUser(),false);
但是除了调用仪表板的母版页之外,我的应用程序正在调用在url上键入的未授权页的母版页.

谁能帮我解决这个问题.

谢谢,
Suneta

i have typed url of a page of which logged in user has not access so in code i am redirecting it to its proper deash board by
Response.Redirect(RedirectUser(), false);
but except calling master page of dash board my application is calling master page of unauthorized page typed on url.

Could any one please help me in this issue.

Thanks,
Suneta

推荐答案

ASP.NET不会调用"母版页.母版页由指向的URI使用,因此显然该页面使用了错误的母版页.
ASP.NET does not "call" masterpages. Masterpages are used by the URI being directed to so obviously the page in question is using the wrong masterpage.


这篇关于从代码重定向到页面并调用另一个页面的不同母版页时出现问题.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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