Here Mudassar Ahmed Khan has explained with an example, how to use ClientScript and ScriptManager RegisterClientScriptBlock and RegisterStartupScript functions in Static WebMethod in ASP.Net using C# and VB.Net.
It is not possible to use ClientScript and ScriptManager RegisterClientScriptBlock and RegisterStartupScript functions in Static WebMethod and hence the solution is to call the JavaScript function inside the success method of the AJAX call.
↧
Using RegisterClientScriptBlock and RegisterStartupScript functions in Static WebMethod in ASP.Net
↧