Master Page and Jquery Problem?

Posted by user356787 on Stack Overflow See other posts from Stack Overflow or by user356787
Published on 2010-06-02T18:53:39Z Indexed on 2010/06/02 19:04 UTC
Read the original article Hit count: 205

Filed under:
|
|
|
|

Hi all..

I have a page called AddNews.aspx and in codebehind a web method called AddNews(Parameters)..

AddNews.aspx page is inherited from a master page.. So i used contentplaceholder.

I have a button..It's id is btnSave.

Here is jquery code:

$(function() {

$("[id$='_btnSave']").click(function() {

$.ajax({

    type: "POST",

    contentType: "application/json; charset=utf-8",

    data: $.toJSON(veriler),

    url: "AddNews.aspx/AddNews",

    dataType: "json",

    success: function(result) {

      $("#result").html('News added');

    }

    ,

        error: function() {

            alert('Problem');

        }

  });

});

});

</script>

Button click dont trigger.. What can i do? Thanks.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about jQuery