Thursday, July 17, 2025

How to call a http handler in web form - asp.net c#

 <script type="text/javascript" src="http://localhost:49183/AsyncHTTPModuleHandler/MyHandler.ashx?url=<%= Request.Path%>">

</script>


public override ProcessRequestAsync(HttpContext context)
{

    string targetUrl = context.Request.QueryString["url"];
}

No comments:

Post a Comment