Hi,
My Error is:
Microsoft JScript runtime error: Unable to get value of the property '_staticInstance': object is null or undefined.
My asmx service code:
[WebMethod]
public string RedirectToLogin(string UserControl, string language, string country, string steps)
{
string redirectpage = string.Empty;
Langauge.RequestRedirectPage Rp = new Langauge.RequestRedirectPage();
redirectpage = Rp.getRedirectPage(UserControl, language, country, steps);
return redirectpage.ToString();
}
My Javascript code:
function load123() {
Namespace1.RedirectToLogin("Registration", "dk", "denmark", "step2", onSuccess123, onfailedfun);
}
function onSuccess123(resul) {
window.location = resul;
}
function onfailedfun(res) {
}
service calling from aspx page:
<asp:ScriptManager ID="ScriptManager2" runat="server">
<Services>
<asp:ServiceReference Path="~/Shop.asmx" />
</Services>
</asp:ScriptManager>
Runtime getting from JSDebug[dynamic] page:
Shop._staticInstance.RedirectToLogin(UserControl,language,country,steps,onSuccess,onFailed,userContext); }
thanks in advance.