Posted on: 7/30/2014 3:00:38 PM | Views : 928

<div class="post-text" itemprop="text"> i have one country selection page from where user select country and a cookie is dropped in user pc as a result next user is redirected to page based on cookie value. so i check cookie exist in user pc from Application_BeginRequest and if not found then redirect user to country.aspx page
i debug the code and saw a infinite loop star. this way i code the whole things
protected void Application_BeginRequest(Object sender, EventArgs e) { string sVal = BBAreman.CountryCookie.GetCookieValue(); string xx = Request.Url.ToString(); if (sVal.Trim() == "") { //Server.Transfer("~/index.aspx?ShowCountry=true",true); HttpApplication application = (HttpApplication)sender; HttpContext context = application.Context; Re ...

Go to the complete details ...