Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Web;
- namespace SimpleHandlerAndModule.Handlers
- {
- public class SimpleHandler : IHttpHandler
- {
- public bool IsReusable => false;
- public void ProcessRequest(HttpContext context)
- {
- string fullHtmlCode = "<!DOCTYPE html><html><head>";
- fullHtmlCode += "<title>Custom Hander and Module</title>";
- fullHtmlCode += "<meta name=\"viewport\" content=\"width=device-width\" />";
- fullHtmlCode += "<link type=\"text/css\" rel=\"stylesheet\" href=\"Content/Styles.css\" />";
- fullHtmlCode += "</head><body>";
- fullHtmlCode += "<div class=\"row\">" +
- "<div class=\"column\"><img src=\"https://5.imimg.com/data5/KD/NT/MY-6975226/rubik-cube-7x7x7-puzzle-educational-toy-500x500.jpg\"></div>" +
- "<div class=\"column\"><img src=\"https://5.imimg.com/data5/KD/NT/MY-6975226/rubik-cube-7x7x7-puzzle-educational-toy-500x500.jpg\"></div>" +
- "<div class=\"column\"><img src=\"https://5.imimg.com/data5/KD/NT/MY-6975226/rubik-cube-7x7x7-puzzle-educational-toy-500x500.jpg\"></div>" +
- "</div>";
- fullHtmlCode += "</body></html>";
- context.Response.Write(fullHtmlCode);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement