views:

40

answers:

1

How can I send data or event info from Javascript to Default.cs (ASP.NET)? is it ajax?

+1  A: 

You will need to create an AJAX call to Default.aspx.

Using jQuery:

$.ajax({
    type: "POST",
    url: "Default.aspx",
    data: "first=John&last=Doe",
    success: function(msg){
        alert( "Data saved: " + msg );
    }
});
David Brown