I am faking an autopostback using jquery since I am using asp.net mvc. It's being performed in a select list (dropdownlist) like this:
$(document).ready(function() {
// autopostback for character drop down list
$('#playerCharacters').change(function() {
var charId = $('#playerCharacters option:selected').val();
window.location = "/Character/SetDefault/" + charId;
});
});
Now in /Character/SetDefault/[charID] (controller, action, ID) I am trying to access the referring URL using this:
Request.UrlReferrer
But it's coming up null. Any ideas on why that is?