Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pre-Compiler complains about orig size of JPG file
Message
General information
Forum:
ASP.NET
Category:
Web forms
Title:
Pre-Compiler complains about orig size of JPG file
Environment versions
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01471948
Message ID:
01471948
Views:
121
I know how to control the size of my image (JPEG file), which is a cover to a book. It works great in HTML,
however I get a complaint in ASP.NET. I can get it to shrink to the size I want, but the pre-compiler
complains that the JPEG file isn't the original size. I can ignore this but will it goof up in any way later?

This is how my code is now in my HTML:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
  <title>A Page from the History of Nantes, France</title>
</head>
  <body bgcolor="#000000">
    <table align="center">
      <tr>
        <td align="center"><img src="Pierre-Antoine Champenois Book.jpg" width="433" height="619.5" alt="Pierre-Antoine Champenois 1766-1832" border="0">
        <p align="Center">
        <a href="http://www.champenois.com/family/pa-champenois-introduction.htm">
              <img src="next.jpg" border=0 ALT="Next"></a>
        </p>
        </td>
      </tr>
    </table>
  </body>
</html>
This is how my code is in ASP.NET:
< % @ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="NantesCover.aspx.cs" Inherits="Nantes" % >

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
    Pierre-Antoine Champenois 1766-1832
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <asp:Image 
        ID="bookCoverImage"
        runat="server"
        ImageUrl="~/Images/PAChampenoisBook.jpg"
        AlternateText="Pierre-Antoine Champenois 1766-1832"
        Height="619.5"
        Width="433"/>
</asp:Content>
Next
Reply
Map
View

Click here to load this message in the networking platform