Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

Value cant pass using Ajax

$
0
0

Hi,

When i give value for textbox--  Naveen'''' cant pass value to post method

<input class="span3" id="txt_Title" type="text" runat="server" />

$('#btnSubmit').on('click', function () {
$.ajax({
type: 'POST',
contentType: "application/json; charset=utf-8",
url: 'ProductMaster.aspx/InsertMethod',
data: "{'Title':'" + $('#<%=txt_Title.ClientID%>').val() + "'}",--How to pass value  with single Quote--   m passing'welcome' can't pass webmethod
async: false,
success: function (response) {

if (response.d="Save") {

window.location.href = "ProductMasterView.aspx";

}});

Thanks


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>