
SolidBrush sb = new SolidBrush(Color.FromName(color)) Graphics g = Graphics.FromImage(jpgFile) įont f = new Font("Arial", 20, GraphicsUnit.Pixel) no Language-Accept header, we go with the english message Message = "Marca Registrada IIS 7.0 Team" Message = "IIS 7.0 Team - Alle Rechte vorbehalten" String message = "Copyright © IIS 7.0 Team" Public void ProcessRequest(HttpContext context)

Public class imageCopyrightHandler : IHttpHandler Open Notepad and paste the following code into it. path:/pictures -physicalPath:%systemdrive%\inetpub\wwwroot\picturesĬreate the directory App_Code underneath the pictures directory: md %systemdrive%\inetpub\wwwroot\pictures\App_Code %windir%\system32\inetsrv\appcmd add app -site.name:"Default Web Site" Execute the following command in an elevated command shell: md %systemdrive%\inetpub\To download the IIS wallpaper, add to the list of trusted sites.Ĭreate an application with the appcmd command-line tool.

Part I – Writing and Configuring the Copyright HandlerĬreate a directory called 'pictures' under the %systemroot%\inetpub\wwwroot directory. Then we add Output Caching to regain performance degradation incurred by adding our copyright handler. Next, we install WCAT, an IIS performance analysis tool, to measure the throughput of our JPG copyright handler. Dynamically inserting a copyright message into every JPG file comes with a cost however, because now managed code must be executed for every JPG file. In the following walkthrough, we use the IIS extensibility interfaces to add language-specific copyright messages to JPG files.įirst, we do this by adding a managed handler. This walkthrough also uses ASP.NET 2.0 which must be installed as an optional component in the IIS Setup. It allows you to cache static responses for dynamic requests and to gain tremendous scalability.įor this walkthrough, you need IIS 7.0 or above on Windows® Vista SP1 or on Windows Server® 2008 Beta 3 or later.


The IIS Output Caching feature targets semi-dynamic content. There is no reason to execute this query on every request if the underlying database tables change infrequently. Imagine a dynamic ASP.NET page that executes a database query. There is a big range between these two categories which includes semi-dynamic content. This is the response that gets generated for dynamic content changes with every request. Examples of static content include HTML files, JPG or GIF files. The content that gets returned to the web browser is always the same. Static content does not change from request to request. Web content can be divided into two categories: static content and dynamic content.
