javascript - Passing url from JS to MVC Controller in a form of a string -
so passing string url js file, like
"https://....."
like this
$http.post("user", vm.user) .then(function (response) { $http.get("user/url/" + response.data.url) .then.....
now having problems,
my controller gets url drops second forward slash,
so ends being
"https:/....."
my controller looks this,
[httpget("user/url/{*url}")] public iactionresult get(string url) { try {
anyway past ? how make sure string intact when passed ?
Comments
Post a Comment