Can you create a custom httphandler with a custom extension in MVC?
I want an image handler that has the following path (if possible),
domain.com/picture/{id of the picture}
Is it possible from inside MVC or do i have to do it in IIS 7?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There’s no need to add a httphandler. You should do this in asp.net mvc via a controller
example:
in global.asax you can define
You could also use System.Web.Helpers.WebImage helper, or do it manually, example: