|
| I think an HTTPHander is the right path, but I need some direction... |
 |
Sun, 17 Feb 2008 13:43:59 +000 |
I am rather new to actually creating HTTPHandlers, and all I have really done so
far is an easy handler that converts the Web.Sitemap to its Google Sitemap
Equivalant.
Here's what I would like to create my next Handler. I own a web development
business. We are constantly producing mock ups and initial designs. What I
really want to do is use an HTTPHandler to serve up my initial images so that
they are protected with both a watermark and maybe a few of the other image
protection schemes out there.. I think that this part is the easy part to be
honest. I have seen several sites out there that have these kinds of idea..
But...
I want to do something that I am not sure how to even start. I would like a Web
Form to appear first that shows my basic privacy policy and ownership rights
along with asking for the Name and Email address of the customer. Maybe even a
password if I am crazy enough down the road. Once they agree to all of the rules
and fill in their information, I want to actually serve them the JPEG with the
overlayed watermark.
I think I know how to do the watermark with the handler, but I am really not
sure about the form and acceptance first before actually serving it up. I'd like
to have the HTTP Handler encompass everything.. But I realize that may not be
possible..
Any thoughts? Do I need to explain it better? I just need to know the best
direction to go..
Thanks for any help in advance!
End Result: Client visits http://mock.domainname.com/clientname.initial which
sparks the handler which must:
Prompt the User for their Name, Email Address, and possibly their Password (Down
the road).
Show the lawyer approved message about ownership and copyright information.
Display the Image with watermarked text.
Notifty the business via email and SMS.
|
| Post Reply
|
| Re: I think an HTTPHander is the right path, but I need some direction... |
 |
Sun, 17 Feb 2008 15:52:21 +000 |
http://askwayne.net/blogs/dotnet/archive/2008/01/29/serving-images-on-the-web-co
rrection-for-dino-s-article.aspx
|
| Post Reply
|
| Re: I think an HTTPHander is the right path, but I need some direction... |
 |
Sun, 17 Feb 2008 20:01:30 +000 |
Ken,
Thanks for the quick reply. I am actually reasonably set for getting the image
watermarked. The troubles I am running into is how to show a web form first to
collect the users information and then display the watermarked image upon the
forms Submit.
Is this possible with an HTTP Handler?
-Brad
|
| Post Reply
|
| Re: I think an HTTPHander is the right path, but I need some direction... |
 |
Mon, 18 Feb 2008 21:24:02 +000 |
Since you have access to the Context.Response from within the handler, you can
check to see if a session or profile variable is set indicating that the user
has accepted the terms. If it is not yet set, you can redirect the response to
the terms form. The form then sets the variable to True when the user accepts
the terms. You can include a "return path" value when you redirect to
the terms form so that it can in turn redirect the user back to the original
request. And this time the variable will be set so instead of the redirect, the
handler serves up the modified image.
Something along those lines should work.
|
| Post Reply
|
| Re: I think an HTTPHander is the right path, but I need some direction... |
 |
Mon, 18 Feb 2008 21:42:12 +000 |
rkimble@microplastics.com:
Since you have access to the Context.Response from within the handler, you can
check to see if a session or profile variable is set indicating that the user
has accepted the terms. If it is not yet set, you can redirect the response to
the terms form. The form then sets the variable to True when the user accepts
the terms. You can include a "return path" value when you redirect to
the terms form so that it can in turn redirect the user back to the original
request. And this time the variable will be set so instead of the redirect, the
handler serves up the modified image.
Something along those lines should work.
Thanks, this is actually the path I had been thinking. I believe I was trying to
over-architect the idea by putting the terms form into the Handler. Thanks for
setting me on the right path.
-Brad
|
| Post Reply
|
|
|
|
|
|
|
|
|
|