You are setting the type
of you ajax
call is set to POST
while the way you are doing it in the url
parameter using query string is done for GET
requests.
The concatenated values are passed when we use GET
request, you need to pass it using the data
property then it will get passed to controller action as POST.
so change your code like below to make it work:
$.ajax({
url: '/AppVersionProtocolMethod/Test',
type: 'POST',
data : { xmlData : textdata}
success: function (datas) {
}
});
Hope it helps you.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…