If you need to use java script in HttpHandler…there is the way you can do it as below
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/plain";
HtmlTextWriter writer = new
HtmlTextWriter(context.Response.Output);
writer.WriteBeginTag("script");
writer.WriteAttribute("language", "javascript");
writer.Write(HtmlTextWriter.TagRightChar);
writer.Write("window.open('../ShippingOrder.aspx');");
writer.WriteEndTag("script");
}
Courtesy : Mr. Siddharth Jain
No comments:
Post a Comment