Redirect to an asp.net mvc controller in a particular area

Assume there is an ASP.NET MVC area “Dsr“. I would like to redirect to Index actionmethod in Login controller in that particular area.

if (Request.QueryString[“userid”]==null || Request.QueryString[“ud”]==null)
{
        return RedirectToAction(“Index”, “LogIn”, new { area = “Dsr” });
}
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s