Mentre nella Default.aspx c'è questo...
codice:
<%@ Page Language="C#" AutoEventWireup="true" Debug="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Prova di area privata</title>
<style type="text/css">
.style1
{
width: 800px;
height: 600px;
border: 1px solid #000000;
}
.style2
{
height: 30px;
}
.style3
{
width: 58px;
}
.style4
{
height: 275px;
}
.style6
{
height: 3px;
}
.style7
{
width: 167px;
height: 80px;
}
.style8
{
width: 162px;
height: 80px;
}
.style9
{
height: 80px;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<table cellpadding="0" cellspacing="0" class="style1">
<tr>
<td class="style2" colspan="5" valign="top">
Questa è una prova di area privata</td>
</tr>
<tr>
<td class="style3" rowspan="3" valign="top">
</td>
<td valign="top" class="style7">
<div style="height: 139px; width: 183px;" >
<asp:DataList ID="datalist1" DataKeyField="ID" DataSourceID="AccessDataSource1"
runat="server" BackColor="#CCCCCC" Font-Bold="False" Font-Italic="False"
Font-Names="Tahoma" Font-Overline="False" Font-Size="Small"
Font-Strikeout="False" Font-Underline="False" ForeColor="Black" Height="263px"
HorizontalAlign="Center" Width="138px" BorderColor="#999999"
BorderStyle="Solid" BorderWidth="3px" CellPadding="4" CellSpacing="2"
GridLines="Both" RepeatColumns="1">
<FooterStyle BackColor="#CCCCCC" />
<ItemStyle BackColor="White" />
<SelectedItemStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
<HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
<ItemTemplate>
ID:
<asp:Label ID="IDLabel" runat="server" Text='<%# Eval("ID") %>' />
descrizione:
<asp:Image ID="descrizioneLabel" runat="server"
Text='<%# Eval("descrizione") %>' />
immagine:
<asp:Label ID="immagineLabel" runat="server" Text='<%# Eval("immagine") %>' />
</ItemTemplate>
</asp:DataList>
<asp:AccessDataSource ID="AccessDataSource1" runat="server"
DataFile="~/App_Data/Immagini.mdb"
SelectCommand="SELECT * FROM [Privata3] WHERE ([ID] = 1)">
<SelectParameters>
<asp:ControlParameter ControlID="datalist1" Name="ID"
PropertyName="SelectedValue" Type="Int32" />
</SelectParameters>
</asp:AccessDataSource>
</div>
</td>
<td valign="top" class="style8">
<div style="height: 140px">
<input type="hidden" id="Record_Max" value="4" runat="server">
<input type="hidden" id="Pagina" value="1" runat="server">
<input type="hidden" id="Record_Tot" runat="server">
<asp:DataList id="Grid" runat="server" repeatlayout="table" DataKeyField="ID">
<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem, "ID") %> -
<%#DataBinder.Eval(Container.DataItem,"descrizione") %>
</ItemTemplate>
</ASP:DataList>
<asp:LinkButton id="Prev" Text="<< Prev" OnClick="Paginazione" runat="server" />
<asp:LinkButton id="Next" Text="Next >>" OnClick="Paginazione" runat="server" />
</div>
</td>
<td class="style9" valign="top">
<div style="height: 139px">
</div>
</td>
<td class="style9" valign="top">
<div style="height: 136px">
</div>
</td>
</tr>
<tr>
<td class="style4" valign="top" colspan="2">
</td>
<td class="style4" valign="top" colspan="2">
</td>
</tr>
<tr>
<td valign="top" class="style6" colspan="4">
Area privata</td>
</tr>
</table>
</form>
</body>
</html>
Con molta umiltà vi chiedo scusa per il disturbo che vi sto creando...