ComponentOne BinaryImage for ASP.NET Web Forms
Explore Features / Http Handler
In This Topic
    Http Handler
    In This Topic

    Create an HttpHandler to stream the image from it's source onto the web form where the BinaryImage control is placed.  

    Use the HttpHandlerUrl property to specify the location of a custom HttpHandler which extends the default BinaryImage Http Handler. When not set, the BinaryImage has its own handler which is invoked through the common C1.Web.UI.WebResource.axd handler.

    Following code is generated in the web.config file.

    <configuration>
      <system.web>
        <httpHandlers>
          <add path="WijmoControlsResource.axd" verb="*" type="C1.Web.Wijmo.Controls.WijmoHttpHandler, C1.Web.Wijmo.Controls.4" validate="false" />
          <add path="C1BinaryImageResource.axd" type="C1.Web.Wijmo.Controls.C1BinaryImage.C1BinaryImageHandler" verb="*" validate="false" />
        </httpHandlers>
        <compilation debug="true" targetFramework="4.5.1">
          <assemblies>
            <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
            <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
          </assemblies>
        </compilation>
        <httpRuntime targetFramework="4.5.1" />
      </system.web>
      <system.webServer>
        <handlers>
          <add name="WijmoControlsHttpHandler" verb="*" preCondition="integratedMode" path="WijmoControlsResource.axd" type="C1.Web.Wijmo.Controls.WijmoHttpHandler, C1.Web.Wijmo.Controls.4" />
          <add name="C1BinaryImageResource" verb="*" preCondition="integratedMode" path="C1BinaryImageResource.axd" type="C1.Web.Wijmo.Controls.C1BinaryImage.C1BinaryImageHandler" />
        </handlers>
        <validation validateIntegratedModeConfiguration="false" />
      </system.webServer>
    </configuration>