Display QuerySring value on URL after Login using AngularJS in ASP.Net MVC

Last Reply 5 months ago By dharmendr

Posted 5 months ago

Hi,

Login Page with Remember Me using AngularJS in ASP.Net MVC

based upon above url i am going to do one functionality

my requirement is that what ever username and password values i have entered on screen display it on url of page

Ex: after login it was redirecting to menu page

localhost:36366/menu/Index?UserName=mahesh&Password=123

Could you please help me

where to make changes in above url

Posted 5 months ago

Hi mahesh213,

Change the window location href.

window.location.href = "/Home/Success";

Above with the below.

window.location.href = "/Menu/Index?UserName=" + $scope.UserName + "&Password=" + $scope.Password;