Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class CustomDataHandler: UrlRoutingHandler
- {
- protected override void VerifyAndProcessRequest(IHttpHandler httpHandler, HttpContextBase httpContext)
- {
- RouteData routeData = httpContext.Request.RequestContext.RouteData;
- httpContext.Response.ContentType = "text/plain";
- httpContext.Response.Write(routeData.Values["dataKey"]);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment