Home     |     .Net Programming    |     cSharp Home    |     Sql Server Home    |     Javascript / Client Side Development     |     Ajax Programming

Ruby on Rails Development     |     Perl Programming     |     C Programming Language     |     C++ Programming     |     IT Jobs

Python Programming Language     |     Laptop Suggestions?    |     TCL Scripting     |     Fortran Programming     |     Scheme Programming Language


 
 
Cervo Technologies
The Right Source to Outsource

MS Dynamics CRM 3.0

Asp.Net Programming

HttpHandler not getting called


Hi All,

Using vs 2005, c#, ms sql 2005 asp.net web site.

Using httphandler to generate dynamic image from sql server database.  Going
according to instructions from msn:

I'm using is Resuable and Process Request procedures.  ProcessRequest has
logging code and calls System.Diagnostics.Debugger.launch() - never get gets
called.
I call the photo using image.Src = "abc.xyz="  + "x.y?keyid=9".  I have
everything set up in Web.Config in <httpHandlers> to register the
httpHandler.  This thing just refuses to work.

Please any ideas?

thnx,
Joe

I

Joe,

The Src attribute doesn't look correct.  It appears like "page.extension" +
"page.extension?keyid=9".  Is this correct?

When you view the source of the page, does the URL appear correct to what
you had set up in Web.Config?

Steve

"Joe Reiss" <joere@bellsouth.net> wrote in message

news:dFl9i.21894$dy1.13129@bigfe9...

Yes its correct.

Its a page + "?" + imageHandler.PublicVar + "=" + KeyID

something like..  page.aspx?keyid=10

When I view the source html output it's exactly right.

"PlatinumBay" <stevan@community.nospam> wrote in message

news:Oj4uU9%23pHHA.1216@TK2MSFTNGP03.phx.gbl...

Joe,

Could you post the web.config section?  Also, for this purpose I have often
used a generic handler (ashx file).

Just as ASPX files can be compiled on the fly (just-in-time), so can
handlers. Generic handlers have an extension of ASHX. They're equivalent to
custom handlers written in C Sharp or Visual Basic.NET in that they contain
classes that fully implement IHttpHandler. They're convenient in the same
way ASPX files are convenient. You simply surf to them and they're compiled
automatically.
(from
http://www.brainbell.com/tutorials/ASP/Generic_Handlers_(ASHX_Files)....)

You can also check out:
http://blogs.msdn.com/delay/archive/2006/03/07/an-image-is-now-worth-...

Hope this helps,

Steve

"Joe Reiss" <joere@bellsouth.net> wrote in message

news:JRB9i.30$Ab.25@bignews3.bellsouth.net...

Add to del.icio.us | Digg this | Stumble it | Powered by Megasolutions Inc