Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pre-Compiler complains about orig size of JPG file
Message
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires Web
Titre:
Pre-Compiler complains about orig size of JPG file
Versions des environnements
Database:
Visual FoxPro
Divers
Thread ID:
01471948
Message ID:
01471948
Vues:
120
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>
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform