rientro nel caso esposto di floyd, se la premessa che funzioni con ASP.NET è esatta.
----------------------------------------------
Il file che viene compilato dal cliente ha questo codice (in arancio c'è il testo di input in cui inserisce la descrizione del prodotto):
[FONT=arial][SIZE=1]<%@ Register TagPrefix="n0" Namespace="UNLV.IAP.WebControls" Assembly="UNLV.IAP.WebControls.HtmlColorDropDown" %>
<%@ Register TagPrefix="uc1" TagName="HeaderMenu" Src="Controls/HeaderMenu.ascx" %>
<%@ Page language="c#" Codebehind="ManageProduct.aspx.cs" AutoEventWireup="false" Inherits="NonSoloPelle.Admin.ManageProduct" %>
<%@ Register TagPrefix="wcl" Namespace="WebControlLibrary" Assembly="WebControlLibrary" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>ManageProduct</title>
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="C#" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
<LINK href="../nonsolopellestyle.css" type="text/css" rel="stylesheet">
<style type="text/css">
A:link { COLOR: #6b9b14; TEXT-DECORATION: none }
A:visited { COLOR: #9f9c0f; TEXT-DECORATION: none }
A:hover { COLOR: #000000; TEXT-DECORATION: underline }
A:active { TEXT-DECORATION: none }
.Stile1 {
font-size: 10px;
font-weight: bold;
}
</style>
</HEAD>
<body>
<table class="nosolopellestyle" width="81%" align="center">
<tr>
<td align="center">[img]sfondo_login.gif[/img]</IMG>
<uc1:headermenu id="HeaderMenu1" runat="server"></uc1:headermenu></td>
</tr>
<tr>
<td>
<form id="Form1" method="post" runat="server">
<input id="ProductIdHidden" type="hidden" name="ProductIdHidden" runat="server">
<div class="Stile1" id="ErrorMessage" runat="server">Prodotto non trovato</div>
<table id="Formatter" width="100%" runat="server">
<tr>
<td width="64%">
<table width="100%">
<tr class="nosolopellestyle" vAlign="top">
<td width="22%">[img]../photo.gif[/img]</td>
<td><asp:image id="Image" runat="server" Width="320" CssClass="nosolopellestyle"></asp:image><asp:checkbox id="DeletePictureBox" runat="server" EnableViewState="False" Text="Elimina Immagine"></asp:checkbox>
<div style="WIDTH: 100%"><input class="nosolopellestyle" id="ImageInput" style="WIDTH: 100%" type="file" name="ImageInput"
runat="server"></div></td>
</tr>
<tr class="nosolopellestyle" vAlign="top">
<td>[img]../codice.gif[/img]
</td>
<td><asp:textbox id="Code" runat="server" Width="100%" CssClass="nosolopellestyle"></asp:textbox><asp:requiredfieldvalidator id="CodeValidator" runat="server" ErrorMessage="Codice è un parametro necessario!"
ControlToValidate="Code" Display="Dynamic"></asp:requiredfieldvalidator></td>
</tr>
<tr class="nosolopellestyle" vAlign="top">
<td style="HEIGHT: 45px">[img]../articolo.gif[/img]</td>
<td style="HEIGHT: 45px"><asp:textbox id="Name" runat="server" Width="100%" CssClass="nosolopellestyle"></asp:textbox><asp:requiredfieldvalidator id="NameValidator" runat="server" ErrorMessage="Articolo è un parametro necessario!"
ControlToValidate="Name" Display="Dynamic"></asp:requiredfieldvalidator></td>
</tr>
<tr class="nosolopellestyle">
<td>[img]../descrizione.gif[/img]</td>
<td><asp:textbox Wrap="true" id="Description" runat="server" Width="100%" CssClass="nosolopellestyle" TextMode="MultiLine"></asp:textbox>< asp:requiredfieldvalidator id="DescriptionValidator" runat="server" ErrorMessage="Descrizione è un parametro necessario!"
ControlToValidate="Description" Display="Dynamic"></asp:requiredfieldvalidator></td>
</tr>
<tr class="nosolopellestyle">
<td>
</td>
<td>
</td>
</tr>
<tr class="nosolopellestyle">
<td style="HEIGHT: 21px">[img]../categoria.jpg[/img]
</td>
<td style="HEIGHT: 21px"><asp:dropdownlist id="Category" runat="server" Width="100%" CssClass="nosolopellestyle" DataTextField="CategoryName"
DataValueField="CategoryId"></asp:dropdownlist><asp:requiredfieldvalidator id="CategoryValidator" runat="server" ErrorMessage="Categoria è un parametro necessario!"
ControlToValidate="Category" Display="Dynamic"></asp:requiredfieldvalidator></td>
</tr>
<TR class="nosolopellestyle">
<TD>[img]../spessore.gif[/img]</TD>
<TD><asp:textbox id="Spessore" runat="server" Width="100%" CssClass="nosolopellestyle"></asp:textbox></TD>
</TR>
<TR class="nosolopellestyle">
<TD>[img]../tipodifiore.gif[/img]</TD>
<TD><asp:textbox id="TipoDiFiore" runat="server" Width="100%" CssClass="nosolopellestyle"></asp:textbox></TD>
</TR>
<TR class="nosolopellestyle">
<TD>[img]../tipodigrana.gif[/img]</TD>
<TD><asp:textbox id="TipoDiGrana" runat="server" Width="100%" CssClass="nosolopellestyle"></asp:textbox></TD>
</TR>
<TR class="nosolopellestyle">
<TD>[img]../tatto.gif[/img]</TD>
<TD><asp:textbox id="Tatto" runat="server" Width="100%" CssClass="nosolopellestyle"></asp:textbox></TD>
</TR>
<TR class="nosolopellestyle">
<TD>[img]../mano.gif[/img]</TD>
<TD><asp:textbox id="Mano" runat="server" Width="100%" CssClass="nosolopellestyle"></asp:textbox></TD>
</TR>
<TR class="nosolopellestyle">
<TD>[img]../aspetto.gif[/img]</TD>
<TD><asp:textbox id="Aspetto" runat="server" Width="100%" CssClass="nosolopellestyle"></asp:textbox></TD>
</TR>
<TR class="nosolopellestyle">
<TD>[img]../colore.gif[/img]</TD>
<TD><asp:textbox id="Colore" runat="server" Width="100%" CssClass="nosolopellestyle"></asp:textbox></TD>
</TR>
<TR class="nosolopellestyle">
<TD>[img]../tintura.gif[/img]</TD>
<TD><asp:textbox id="Tintura" runat="server" Width="100%" CssClass="nosolopellestyle"></asp:textbox></TD>
</TR>
<TR class="nosolopellestyle">
<TD>[img]../rifinizione.gif[/img]</TD>
<TD><asp:textbox id="Rifinizione" runat="server" Width="100%" CssClass="nosolopellestyle"></asp:textbox></TD>
</TR>
<TR class="nosolopellestyle">
<TD valign="top" class="nosolopellestyle">[img]../coloridisponibili.gif[/img]
</TD>
<TD ><asp:datagrid id="ColorGrid" runat="server" Width="100%" CssClass="nosolopellestyle" AutoGenerateColumns="False" DataKeyField="ColorId">
<columns>
<asp:BoundColumn DataField="ColorName" HeaderText="Colore"></asp:BoundColumn>
<asp:TemplateColumn HeaderText="Anteprima" ItemStyle-Width="60%">
<ItemTemplate>
<div style=' WIDTH: 100%; HEIGHT: 100%; BACKGROUND-COLOR: <%#DataBinder.Eval(Container.DataItem, "Red", "{0:x2}") + DataBinder.Eval(Container.DataItem, "Green", "{0:x2}") + DataBinder.Eval(Container.DataItem, "Blue", "{0:x2}") %>'></div>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Comandi">
<ItemTemplate>
<asp:LinkButton CommandName="Delete" Runat="server">Elimina</asp:LinkButton>
<asp:LinkButton CommandName="ShiftUp" Runat="server">Su</asp:LinkButton>
<asp:LinkButton CommandName="ShiftDown" Runat="server">Giù</asp:LinkButton>
</ItemTemplate>
</asp:TemplateColumn>
</columns>
</asp:datagrid></TD>
</TR>
ecc. ecc. ecc.
------------------------------------------------------------------
Il file in cui tutto ciò viene "stampato" nel sito ha questo codice:
<%@ Register TagPrefix="wcl" Namespace="WebControlLibrary" Assembly="WebControlLibrary" %>
<%@ Page language="c#" Codebehind="ProductDetails.aspx.cs" AutoEventWireup="false" Inherits="NonSoloPelle.Admin.ProductDetail" EnableViewState="False" %>
<%@ Register TagPrefix="uc1" TagName="HeaderMenu" Src="Controls/HeaderMenu.ascx" %>
<%@ Register TagPrefix="n0" Namespace="UNLV.IAP.WebControls" Assembly="UNLV.IAP.WebControls.HtmlColorDropDown" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<TITLE>Nonsolopelle>Dettagli Prodotto/Product details>Universal Version</TITLE>
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="C#" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
<link href="nonsolopellestyle.css" rel="stylesheet" type="text/css">
<style type="text/css">
BODY { MARGIN-LEFT: 0px; MARGIN-RIGHT: 0px }
A:link { COLOR: #6b9b14; TEXT-DECORATION: none }
A:visited { COLOR: #9f9c0f; TEXT-DECORATION: none }
A:hover { COLOR: #000000; TEXT-DECORATION: none }
A:active { TEXT-DECORATION: none }
.ColorTable { TABLE-LAYOUT: fixed }
.ColorElement { FONT-SIZE: 80px; COLOR: #ffffff; FONT-FAMILY: 'Courier New'; LETTER-SPACING: 0px; BACKGROUD-COLOR: #ffffff }
.Stile1 {
font-size: 10px;
color: #6C9811;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-weight: bold;
}
</style>
</HEAD>
<body>
<TABLE width="65%" align="center">
<TR class="nosolopellestyle">
<TD align="left">[img]sfondo_data_sheet.jpg[/img]</TD>
</TR>
<TR class="nosolopellestyle">
<TD align="center"><INPUT id="ProductIdHidden" type="hidden" name="ProductIdHidden" runat="server">
<DIV id="ErrorMessage" runat="server">
<DIV align="center">Prodotto non trovato</DIV>
</DIV>
<TABLE id="Formatter" width="90%" runat="server">
<TR>
<TD width="50%" align="center">
<TABLE align="left">
<TR class="nosolopellestyle">
<TD vAlign="top" align="right">[img]photo.gif[/img]</TD>
<TD vAlign="top">
<asp:image id="Image" runat="server" Width="600" BorderWidth="1px" BorderColor="#463427"></asp:image></TD>
</TR>
<TR class="nosolopellestyle">
<TD vAlign="top" align="right" >[img]codice.gif[/img]</TD>
<TD width="601" align="left" vAlign="top" bgColor="#d1e0ab" class="nosolopellestyle">
<DIV class="Stile1" id="Code" runat="server"></DIV></TD>
</TR>
<TR class="nosolopellestyle">
<TD vAlign="top" align="right">[img]articolo.gif[/img]</TD>
<TD align="left" vAlign="top" bgColor="#d1e0ab" class="nosolopellestyle">
<div class="Stile1" id="Name" runat="server"></div> </TD>
</TR>
<TR class="nosolopellestyle">
<TD vAlign="top" align="right">[img]descrizione.gif[/img]</TD>
<TD align="left" vAlign="top" bgcolor="#dcd8cf" class="nonsolopellestyle2">
<DIV id="Description" runat="server"></DIV>
ecc. ecc.
</HTML>
Grazie![]()

Rispondi quotando