tags:

views:

62

answers:

1

in my project I am redirecting user to another page on clicking a link.It is working fine in firefox and chrome but on ie it is showing a 302 status and it not redirecting to other page.How should i resolve this issue.

  <a title="Go toCompany" style="background: none!important" href='<%= Url.Action("XYZ","BuildingProject",new {id=item.Id})%>'>

Onclicking the above code ,

  public ActionResult XYZ(int id)
    {

        Helpers.SessionHelper.SetSession(id);
        BuildingProjectRepository p = new BuildingProjectRepository();
        return RedirectToAction("Index");

    }

and user is redirected to the index page.

A: 

More explanation of you problem would probably solicit better responses as SLaks points out 302 is a redirection result not an error. Try explaining what is happening and why you see it as a problem?

Richard