내 문자열에 #
이 있습니다.URL 인코딩 구성 요소가 문자열 서버 측에 들어 가지 않습니다.
그리고 그 문자열을 서버 측에서 Ajax를 통해 내 C# 메소드로 보내고 있습니다. 내가로 보내고
은 다음과 같습니다
$.ajax({
type: "POST",
url: "http://localhost:5889/MobileEcomm/Service1.svc/validateLogin/"+EmailID+"/"+encodeURIComponent(Password),
crossDomain: true,
success: function (data) {
alert(JSON.stringify(data));
alert("Login Sucessfull!!!");
window.location = "viewOrders.html";
// do something with server response data
},
error: function (err) {
// handle your error logic here
alert("Error");
}
});
내 암호 문자열 : [email protected]#
는
내 C# 방법 구조 :
public string validateLogin(string Email, string Password)
{
return Password;
}
Wheni는 C#에서 암호 매개 변수를 얻을 수는, 그것의는 다음과 같이
[email protected]
내가
의 경고를 만들 때encodeURIComponent(Password)
,210
그것 : 내가 같은 결과를 얻지 못하고있는 이유
pass%40%23
내 C#을 방법에 암호를 매개 변수로 (% 40 % 23 패스) ???
도와주세요.
마지막 링크는 나를 도와주었습니다. 고맙습니다. :) –