ASP.NET
  Home arrow ASP.NET arrow Playing with Images in ASP.NET 3.5 AJAX Ap...
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Mobile Linux 
App Generation ROI 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
ASP.NET

Playing with Images in ASP.NET 3.5 AJAX Applications
By: Xianzhong Zhu
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 1
    2008-08-26

    Table of Contents:
  • Playing with Images in ASP.NET 3.5 AJAX Applications
  • Hacking the HTML
  • A Few words about the HTTP Handler
  • Loading Images from an Assembly
  • Accessing Images from a SQL Server Database

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Playing with Images in ASP.NET 3.5 AJAX Applications


    (Page 1 of 5 )

    In this long article, you will learn nearly all the image related problems under the newest ASP.NET 3.5 AJAX environments, and how to deal with them. This article is the first of two parts.

    First, to test the sample applications provided in this article, it is highly recommended that you install the following:

    • Windows XP Professional or higher versions (built-in support for GDI+ 1.0).
    • Microsoft Visual Studio 2008 (ASP.NET 3.5 provided the built-in support for ASP.NET AJAX Extensions).
    • Microsoft SQL Server 2005 or higher, with the sample database AdventureWorks_Data.mdf installed.
    • ASP.NET AJAX Control Toolkit, which is required for the last sample in this article.

    Second, to follow along with all the samples in this article, it is strongly suggested that you download the source files accompanying this article.

    Finally, because the sample database AdventureWorks_Data.mdf is huge (more than 160Mb), I have removed it in the source code that comes with this article.

    Introduction

    Nowadays, images are spreading all over the Internet. Can you image what the Internet without image support would look like? Therefore, image, as with any other kind of data, is becoming more of a necessary item for nearly all ASP.NET developers. However, unlike the inner workings with general Windows desktop applications, due to the limited bandwidth of the current Internet and the no-state characteristic of HTTP protocol, rendering images in an ASP.NET application usually requires a special image toolkit or third party support. Delightfully, with the new image engine of GDI+ and the earthshaking ASP.NET 2.0 coming into the market, ASP.NET developers can easily deal with images in the web application scenario.

    On the one hand, it is clear that images aren't always deployed in the web field. On the other hand, in many web applications, images play a crucial role, as important as any other kind of data in web applications such as tour guides, finance and economics analyses, and photography exhibitions. In these cases, these applications probably require image data to be generated and rendered dynamically, or processed with a distinguishing mark (such as a watermark or copyright information).

    On the other hand, GDI+ is the new interface for drawing Windows graphics, which drastically simplifies the image process. It used to required complex and additional work in the days of plain GDI, but with GDI+ came a set of new concepts and classes.  In the old days, to deal with images flexibly, you often have to fall back on the third party's web image toolkit or libraries. Thanks to GDI+, ASP.NET developers can now accomplish nearly any image-associated tasks individually without needing additional image tools or libraries.

    In this article, I will lead you systematically through nearly all the image process related concerns under the ASP.NET 3.5 environment through several typical samples, especially laying emphasis upon GDI+ support with process images. What's more, you can learn how to deal with images under popular AJAX environments in combination with Microsoft's ASP.NET 3.5.

    More ASP.NET Articles
    More By Xianzhong Zhu


     

    ASP.NET ARTICLES

    - Disadvantages of the ASP.NET MVC Framework
    - Advantages of the ASP.NET MVC Approach
    - ASP.NET Web Forms Weaknesses
    - ASP.NET Web Forms Meets ASP.NET MVC
    - Source Code for Saving and Retrieving Data w...
    - Using GridView to Save and Retrieve Data wit...
    - Handling Dynamic Images in ASP.NET 3.5 AJAX ...
    - Retrieving Data with AJAX and the GridView C...
    - Playing with Images in ASP.NET 3.5 AJAX Appl...
    - Saving and Retrieving Data with AJAX
    - Enhancing PHP Via the ASP.NET AJAX Framework...
    - Enhancing PHP Programming with the ASP.NET A...
    - Classes and ASP.NET AJAX
    - Using ASP.NET AJAX
    - Building a Simple Storefront with LINQ

     
    Application Delivery: Everything You Wanted to Know, but Didn`t Know You Needed to Ask
    A comprehensive guide to examining the topics of Wide-area Data Services and app....

     
    Best Practices: Safe and Secure Hardware Asset Recovery
    Companies increasingly must meet EPA and local requirements for the disposal of ....

     
    Managing SSL Security in Multi-Server Environments
    Read this white paper to learn how to simplify management of your organization's....

     
    Open Source Security Myths
    Open Source Software (OSS) is computer software whose source code is available t....

     
    Power and Cooling Capacity Management for Data Centers
    This paper describes the principles for achieving power and cooling capacity man....

     




    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
    Stay green...Green IT