initialize to page load below:
Page_Load
---
protected void Page_Load(object sender, EventArgs e)
{
Ajax.Utility.RegisterTypeForAjax(typeof(RefPhy_Application_RefOutlook));
}
then add the code to aspx page:
Method..
[Ajax.AjaxMethod(HttpSessionStateRequirement.ReadWrite)]
public string SetStandardUrls(int officeId)
{
}
script
-------
RefPhy_Application_RefOutlook.SetStandardUrls(OfficeId, reloadContext_callback);
function reloadContext_callback(response) {
if (response.error == null) {
var result = response.value;
}
}
WEB CONFIG:
//
<>
/
<>
/
..
< verb="POST,GET" path="ajax/*.ashx" type="Ajax.PageHandlerFactory, Ajax"> .. .... ...
No comments:
Post a Comment