Last post Nov 29, 2009 10:19 PM by Song-Tian - MSFT
Nov 27, 2009 01:46 PM|Venkata Krishna Kishore|LINK
<p>Can anybody tell me how to use Httphandlers with a asp.net button control actually my reuqirement is , i am generating encrypted pdf files. </p>
<p>Just for a change , i want to do the encyption using http handlers. every thing is working find. I dont know wether it is a good practice or not . </p>
<p>when i clcik on server side button control, i amredirecting to httphandler(pdfFile.ashx) using response.redirect and doing all my work.everything is working fine up to the requirement , but my issue is once code is executed the page is remaining blank(as
it is a ashx file) and its not redirecting to my previous page. </p>
<p>i know what ever i did is wrong , can you please advice me and correct my mistakes. </p>
my questions are
1) when should we use httthandlers(which scenarios)?.
2) through only java script we can call http handlers? or is there any possibility to call from server side events like button control.
According to me httphandlers will be used where we dont need all the page events. Please advice me and rectify my mistakes.
Please do me the need full
Thanks and Regards
Nov 28, 2009 04:29 AM|qwe123kids|LINK
HttpHanler and Http module is used if U want Captuer something before it reaches to IIS OR beofr Real Page Start Works....
chk the above link it is well explained
Nov 29, 2009 10:19 PM|Song-Tian - MSFT|LINK
There have a goode example to explain Httpmoudle and Httphandler. You could study that step by step.