Torna al Thread

<%@ Page Language="VB" MasterPageFile="~/Modello_giovanincristo.master" AutoEventWireup="false" CodeFile="inserisci.aspx.vb" Inherits="inserisci" title="Untitled Page" %> <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" DataKeyNames="ID" DataSourceID="AccessDataSource1" Height="50px" Width="633px" BackColor="LightGoldenrodYellow" BorderColor="Tan" BorderWidth="1px" CellPadding="2" ForeColor="Black" GridLines="None" AllowPaging="True"> <Fields> <asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="False" ReadOnly="True" SortExpression="ID" /> <asp:BoundField DataField="data" HeaderText="data" SortExpression="data" /> <asp:BoundField DataField="titolo" HeaderText="titolo" SortExpression="titolo" /> <asp:TemplateField> <EditItemTemplate> <asp:TextBox id="tx1" runat="server" TextMode="MultiLine" Height="300px" Width="300px" Text='<%# Eval("Descrizione") %>'></asp:TextBox> </EditItemTemplate> <ItemTemplate> <%# Eval("Descrizione") %> </ItemTemplate> </asp:TemplateField> <asp:BoundField DataField="immagine" HeaderText="immagine" SortExpression="immagine" /> <asp:CommandField ShowInsertButton="True" /> </Fields> <FooterStyle BackColor="Tan" /> <PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" HorizontalAlign="Center" /> <HeaderStyle BackColor="Tan" Font-Bold="True" /> <EditRowStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" /> <AlternatingRowStyle BackColor="PaleGoldenrod" /> </asp:DetailsView> <br /> <asp:FileUpload ID="FileUpload1" runat="server" ToolTip="Upload immagine sul server" Width="240px" /> <br /> <asp:Button ID="Button1" runat="server" Text="Carica file" /> <asp:Label ID="Label1" runat="server" ForeColor="DarkViolet"></asp:Label> <asp:AccessDataSource ID="AccessDataSource1" runat="server" ConflictDetection="CompareAllValues" DataFile="~/mdb-database/dati.mdb" InsertCommand="INSERT INTO [news] ([data], [titolo], [descrizione], [immagine]) VALUES (?, ?, ?, ?)" OldValuesParameterFormatString="{original_0}" SelectCommand="SELECT * FROM [news] ORDER BY [data]"> <InsertParameters> <asp:Parameter Name="data" Type="String" /> <asp:Parameter Name="titolo" Type="String" /> <asp:Parameter Name="descrizione" Type="String" /> <asp:Parameter Name="immagine" Type="String" /> </InsertParameters> </asp:AccessDataSource> <a href="admin.aspx"><strong><span style="font-size: 14pt">Modifica/elimina</span></strong></a> </asp:Content>
Copyright © dotNetHell.it 2002-2024
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5