从代码重定向到页面并调用另一个页面的不同母版页时出现问题.

问题描述:

我键入了登录用户无法访问的页面的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.