Problem to call Method in ascx

Problem to call Method in ascx

Hi ,
 
I'm trying to call method in ascx (usercontrol) but unable to call it.
I have written in 'Invitation.ascx' ,
 

<

script type ="text/javascript">

$(document).ready(
function () {

$.ajax({

type:

"POST",

url: "Default.aspx/AcceptInvitation",

//Pass the selected record id

data:

"{'TID': '" + t_id + "',IID': '" + i_id + "'}",

contentType:

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

dataType:

"json",

success:

function() {

// Change the back color of the Row before deleting

tr_id.css(

"background-color", "lightgreen");

// Do some animation effect

tr_id.fadeOut(500,

function() {

//Remove GridView row

tr_id.remove();

});

}

});
 
1. It doesn't call AcceptInvitation method.
2. I'm also not able to change the value of textbox in 'Invitation.ascx' .
 
Can please guide me , how can I use JQuery in ascx ?
 
Thanks ,
Nawnit