开发者

how to redirect the user to page in different app

开发者 https://www.devze.com 2023-03-25 08:16 出处:网络
i have two web projects authenticating the user usingconfiguration. let say web1,web2 once the user logs into web1 there a link is provided to web2 .

i have two web projects authenticating the user using configuration. let say web1,web2 once the user logs into web1 there a link is provided to web2 .

When a user requests a particular page in web2 app, it is redirected to login page once validated i wants to redirect to requested page.

I'm using

strRedirect = Request.QueryString["ReturnUrl"];

            if (strRedirect == null)
            {
                strRedirect = "~/default.aspx";
                Response.Redirect(strRedirect);
            }
            else
            {

                Response.Redirect(strRedirect);
            } 

but this gives only relative path. By using URI url=Req开发者_StackOverflow社区uest.url gives the full path so how can i redirect the user to this page....?????


I made correction in my web.config then it is working fine

0

精彩评论

暂无评论...
验证码 换一张
取 消