tags:

views:

14

answers:

0

Hi all,

i just started using ASP.Net Ajax and AJAX-enabled WCF Service to replace AjaxPro.

Is is possible to do something like this?

var service = new Services.UserService();
var pageId = service.GetPageId("123",PageIdCallback);

if (pageId=="abc"){
 //Redirect
}

function PageIdCallback(pageId) {
 //I don't want this
}

pageId will receive id from GetPageId method directly and not in PageIdCallback