SunQuest
 
       ASP.NET
  Home arrow ASP.NET arrow Page 6 - Back-end Management Tasks for an ASP.NET A...
Iron Speed
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 
Dedicated Servers 
Actuate Whitepapers 
VeriSign Whitepapers 
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

Back-end Management Tasks for an ASP.NET AJAX Server-Centric Based Online Shopping Website
By: Xianzhong Zhu
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 3
    2008-01-16

    Table of Contents:
  • Back-end Management Tasks for an ASP.NET AJAX Server-Centric Based Online Shopping Website
  • Moving Tree Nodes
  • Product Management
  • The Product Manage Page
  • Adding New Product
  • About Viewing Products

  • 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
     
    Iron Speed
     
    ADVERTISEMENT

    At the virtual BlackBerry Technical Seminar 2008, you can ask your development questions directly of Research In Motion® (RIM) experts, and take advantage of learning opportunities designed uniquely for BlackBerry solution developers. Register Today!

    Back-end Management Tasks for an ASP.NET AJAX Server-Centric Based Online Shopping Website - About Viewing Products


    (Page 6 of 6 )


    About Viewing Products

    Finally, when you click the hyperlink that relates to the product name in the "ProductManage.aspx" page, you will be redirected to the "ProductInfo.aspx" page to view the detailed info about the selected product. Here, we only talk about how to view the image of the product.

    First, let’s see the related HTML code, as follows:

    <tr style="height:30px;">

    <td align="right" style="width:150px;height:30px;">

    Picture:</td>

    <td align="left" style="height: 100px;">

    <asp:GridView ID="GridView1" runat="server" Height="1px" Width="218px" AutoGenerateColumns="False">

    <Columns>

    <asp:TemplateField >

    <ItemTemplate>

    <asp:Image ID="ProductPicture" Runat="server" Width="90" Height="80"
    ImageUrl='<%# Eval("PictureID", "../../Handler.ashx?Id={0}") %>' >

    </asp:Image>

    </ItemTemplate>

    </asp:TemplateField>

    </Columns>

    </asp:GridView>

    <asp:Button ID="btnShow" runat="server" Text="Display Image"
    OnClick="btnShow_Click" />

    </td>

    </tr>

    As has been pointed out in the previous section, to show an image/picture on a web page in a specified position was once very different. But now with the introduction of the new HTTP handler file ".ashx," this problem can be solved relatively easily. Here, we use an ASP.NET GridView control to anchor the position. And then, by using the ASP.NET Imagecontrol and letting its ImageUrlparameter point to a special "Handler.ashx?Id=… " URL and programming the  "Handler.ashx" file, we finally achieve the result of displaying the image on the screen.

    The following Figure 32 shows part of the design-time snapshot for showing the image data.


    Figure 32—the design-time snapshot for showing image data

    Last but not least, only by clicking the "Display Image" can you see the image. If you do not click the button, you will not see the image. 


    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

     

    ASP.NET ARTICLES

    - 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
    - Developing a Dice Game Using ASP.NET Futures...
    - Completing an ASP.NET AJAX Server-Centric Ba...
    - Information Management for an ASP.NET AJAX S...
    - Comment and Order Management for an ASP.NET ...
    - Back-end Management Tasks for an ASP.NET AJA...
    - User Information Management for an ASP.NET A...
    - Adding Comments and Search to an ASP.NET AJA...
    - Order-Related Modules for an ASP.NET AJAX Se...
    - User and Role Management for an ASP.NET AJAX...
    - Programming an ASP.NET AJAX Server-Centric B...

    Iron Speed




    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway