Click here to Skip to main content
15,881,588 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi,

I got an MVC project from one of my friend. When I am clicking the login button am getting the following message in browser

JavaScript
{"Success":true,"FormId":"06c443539adf417c8e7e0d65da243061","Message":"Failed to login","RedirectUrl":"https://localhost/my-account/courses"}


Why am getting the these error? Please provide a solution.
Posted
Updated 27-Apr-15 1:41am
v2
Comments
Kornfeld Eliyahu Peter 27-Apr-15 7:00am    
It is not an error, but the result of some action (in JSON format)...You should show the actual code executing so we can give you more specific answer...
SwarupDChavan 28-Apr-15 3:00am    
If its in an alert you can just remove it from the jquery or javascript ,otherwise you need to provide more code for analysis.

1 solution

hope it will help you,

He is returning class object as json output.so you please store that object in one variable of Javascript or Jquery in the following way.

var result=returned json object

if(result.Success){
alert('login success');
}
else
{
alert('login failed');
}

mark it as answer,if it solve your problem
 
Share this answer
 
v2

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