codice:
<%@ Page Language="VB" ContentType="text/html" ResponseEncoding="iso-8859-1" %>
<%@ Register TagPrefix="MM" Namespace="DreamweaverCtrls" Assembly="DreamweaverCtrls,version=1.0.0.0,publicKeyToken=836f606ede05d46a,culture=neutral" %>
<MM:Insert
runat="server"
CommandText='<%# "INSERT INTO formaggi (calorie_totali, carboidrati, coliformi_totali, composizione, conservabilità, escherichia, gusto, id_categorie, id_formaggi, imballaggio, immagine_grande, immagini_piccola, kCalcarboidrati, kCallipidi, kCalproteine, lipidi, listeria, nome, pezzatura, ph, proteine, salmonella, shelflife, stafilococco, stagionatura, struttura, tipo, trattamento, umidita, zuccheri) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)" %>'
ConnectionString='<%# System.Configuration.ConfigurationSettings.AppSettings("MM_CONNECTION_STRING_roberto") %>'
DatabaseType='<%# System.Configuration.ConfigurationSettings.AppSettings("MM_CONNECTION_DATABASETYPE_roberto") %>'
Expression='<%# Request.Form("MM_insert") = "form1" %>'
CreateDataSet="false"
SuccessURL='<%# "formaggi.aspx" %>'
Debug="true"
>
<Parameters>
<Parameter Name="@calorie_totali" Value='<%# IIf((Request.Form("calorie_totali") <> Nothing), Request.Form("calorie_totali"), "") %>' Type="WChar" />
<Parameter Name="@carboidrati" Value='<%# IIf((Request.Form("carboidrati") <> Nothing), Request.Form("carboidrati"), "") %>' Type="WChar" />
<Parameter Name="@coliformi_totali" Value='<%# IIf((Request.Form("coliformi_totali") <> Nothing), Request.Form("coliformi_totali"), "") %>' Type="WChar" />
<Parameter Name="@composizione" Value='<%# IIf((Request.Form("composizione") <> Nothing), Request.Form("composizione"), "") %>' Type="WChar" />
<Parameter Name="@conservabilità" Value='<%# IIf((Request.Form("conservabilit") <> Nothing), Request.Form("conservabilit"), "") %>' Type="WChar" />
<Parameter Name="@escherichia" Value='<%# IIf((Request.Form("escherichia") <> Nothing), Request.Form("escherichia"), "") %>' Type="WChar" />
<Parameter Name="@gusto" Value='<%# IIf((Request.Form("gusto") <> Nothing), Request.Form("gusto"), "") %>' Type="WChar" />
<Parameter Name="@id_categorie" Value='<%# IIf((Request.Form("id_categorie") <> Nothing), Request.Form("id_categorie"), "") %>' Type="Integer" />
<Parameter Name="@id_formaggi" Value='<%# IIf((Request.Form("id_formaggi") <> Nothing), Request.Form("id_formaggi"), "") %>' Type="Integer" />
<Parameter Name="@imballaggio" Value='<%# IIf((Request.Form("imballaggio") <> Nothing), Request.Form("imballaggio"), "") %>' Type="WChar" />
<Parameter Name="@immagine_grande" Value='<%# IIf((Request.Form("immagine_grande") <> Nothing), Request.Form("immagine_grande"), "") %>' Type="WChar" />
<Parameter Name="@immagini_piccola" Value='<%# IIf((Request.Form("immagini_piccola") <> Nothing), Request.Form("immagini_piccola"), "") %>' Type="WChar" />
<Parameter Name="@kCalcarboidrati" Value='<%# IIf((Request.Form("kCalcarboidrati") <> Nothing), Request.Form("kCalcarboidrati"), "") %>' Type="WChar" />
<Parameter Name="@kCallipidi" Value='<%# IIf((Request.Form("kCallipidi") <> Nothing), Request.Form("kCallipidi"), "") %>' Type="WChar" />
<Parameter Name="@kCalproteine" Value='<%# IIf((Request.Form("kCalproteine") <> Nothing), Request.Form("kCalproteine"), "") %>' Type="WChar" />
<Parameter Name="@lipidi" Value='<%# IIf((Request.Form("lipidi") <> Nothing), Request.Form("lipidi"), "") %>' Type="WChar" />
<Parameter Name="@listeria" Value='<%# IIf((Request.Form("listeria") <> Nothing), Request.Form("listeria"), "") %>' Type="WChar" />
<Parameter Name="@nome" Value='<%# IIf((Request.Form("nome") <> Nothing), Request.Form("nome"), "") %>' Type="WChar" />
<Parameter Name="@pezzatura" Value='<%# IIf((Request.Form("pezzatura") <> Nothing), Request.Form("pezzatura"), "") %>' Type="WChar" />
<Parameter Name="@ph" Value='<%# IIf((Request.Form("ph") <> Nothing), Request.Form("ph"), "") %>' Type="WChar" />
<Parameter Name="@proteine" Value='<%# IIf((Request.Form("proteine") <> Nothing), Request.Form("proteine"), "") %>' Type="WChar" />
<Parameter Name="@salmonella" Value='<%# IIf((Request.Form("salmonella") <> Nothing), Request.Form("salmonella"), "") %>' Type="WChar" />
<Parameter Name="@shelflife" Value='<%# IIf((Request.Form("shelflife") <> Nothing), Request.Form("shelflife"), "") %>' Type="WChar" />
<Parameter Name="@stafilococco" Value='<%# IIf((Request.Form("stafilococco") <> Nothing), Request.Form("stafilococco"), "") %>' Type="WChar" />
<Parameter Name="@stagionatura" Value='<%# IIf((Request.Form("stagionatura") <> Nothing), Request.Form("stagionatura"), "") %>' Type="WChar" />
<Parameter Name="@struttura" Value='<%# IIf((Request.Form("struttura") <> Nothing), Request.Form("struttura"), "") %>' Type="WChar" />
<Parameter Name="@tipo" Value='<%# IIf((Request.Form("tipo") <> Nothing), Request.Form("tipo"), "") %>' Type="WChar" />
<Parameter Name="@trattamento" Value='<%# IIf((Request.Form("trattamento") <> Nothing), Request.Form("trattamento"), "") %>' Type="WChar" />
<Parameter Name="@umidita" Value='<%# IIf((Request.Form("umidita") <> Nothing), Request.Form("umidita"), "") %>' Type="WChar" />
<Parameter Name="@zuccheri" Value='<%# IIf((Request.Form("zuccheri") <> Nothing), Request.Form("zuccheri"), "") %>' Type="WChar" />
</Parameters>
</MM:Insert>
<MM:DataSet
id="aggFormaggi"
runat="Server"
IsStoredProcedure="false"
ConnectionString='<%# System.Configuration.ConfigurationSettings.AppSettings("MM_CONNECTION_STRING_roberto") %>'
DatabaseType='<%# System.Configuration.ConfigurationSettings.AppSettings("MM_CONNECTION_DATABASETYPE_roberto") %>'
CommandText='<%# "SELECT * FROM formaggi WHERE id_formaggi = ?" %>'
Debug="true"
>
<Parameters>
<Parameter Name="@id_formaggi" Value='<%# IIf((Request.QueryString("id_formaggi") <> Nothing), Request.QueryString("id_formaggi"), "") %>' Type="Integer" />
</Parameters>
</MM:DataSet>
<MM:PageBind runat="server" PostBackBind="true" />
<html>
<head>
<title>Documento senza titolo</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="middle">
<form method="post" name="form1" runat="server">
<table align="center">
<tr valign="baseline">
<td nowrap align="right">Calorie_totali:</td>
<td>
<asp:textbox id="calorie_totali" TextMode="SingleLine" Columns="32" runat="server" />
</td>
</tr>
<tr valign="baseline">
<td nowrap align="right">Carboidrati:</td>
<td>
<asp:textbox id="carboidrati" TextMode="SingleLine" Columns="32" runat="server" />
</td>
</tr>
................................