Find referring page in asp.net mvc after a jquery redirect?

I think setting the window. Location directly is treated by the browser the same as it would treat the user directly entering a new URL into the location bar. This means that there's no referrer since referrers are about one page directly referring to another, (eg.

Via a link) not the browser just going to another page Easiest way I can see to solve your issue is to make sure your drop down list is in a form that posts (or gets) to /Character/SetDefault & then make your javascript submit the form like this: $('#playerCharacters'). Change(function() { this.form.submit(); }) You'll then just need to change your SetDefault action in your controller to have a playerCharacters parameter so that the MVC will bind the form's request value to your method properly.

I think setting the window. Location directly is treated by the browser the same as it would treat the user directly entering a new URL into the location bar. This means that there's no referrer since referrers are about one page directly referring to another, (eg.

Via a link) not the browser just going to another page... Easiest way I can see to solve your issue is to make sure your drop down list is in a form that posts (or gets) to /Character/SetDefault & then make your javascript submit the form like this: $('#playerCharacters'). Change(function() { this.form.submit(); }); You'll then just need to change your SetDefault action in your controller to have a playerCharacters parameter so that the MVC will bind the form's request value to your method properly.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions