Click here to Skip to main content
15,353,729 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How to fix this problem have any Suggestion????

What I have tried:

Whenever i am login first time from any browser then Login Page url is change like

and my web.confign code
<authentication mode="Forms">
      <forms loginUrl="~/Account/Login" timeout="7000" />

Thomas Daniels 28-Mar-16 2:11am
What is the problem exactly?
AnantPithadiya 28-Mar-16 2:13am
Here Correct Login url is localhost:12122/Account/Login and in this css file working not localhost:12122/Account/Login?ReturnUrl=%2f.url and in this css files not working.
Thomas Daniels 28-Mar-16 2:19am
You cannot get rid of the ReturnUrl. It's a part of Forms Authentication.

How do you link the CSS files?
Karthik_Mahalingam 28-Mar-16 2:22am
post your Login action code
AnantPithadiya 28-Mar-16 2:27am
Login Action in Account Controller
public ActionResult Login()
return View();
AnantPithadiya 28-Mar-16 2:22am
master page in like <link rel="stylesheet" href="~/Css/bootstrap.css" type="text/css" />.but how remove ReturnUrl=%2f
Thomas Daniels 28-Mar-16 2:24am
As I said, you cannot remove it. Why do you need to remove it? If your CSS doesn't work when ReturnUrl is added, then you need to fix a problem at another location.
AnantPithadiya 28-Mar-16 2:25am
I think,Modified web.config then remove return url,but i don't know how to modified

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900