+++++++++++++++++++++++++++++CODICE+++++++++++++++ +++++++++++++


----------------------------------------------------
FILE 'LEGGI.ASPX'
(il file di design, quello che contiene il pulsante 'query' che genera l'errore)


<%@ Page Language="C#" AutoEventWireup="true" CodeFile="LeggiQuery.aspx.cs" Inherits="LeggiQuery" %>

<!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>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div style="text-align: left">
<asp:TextBox ID="TextBox1" runat="server" OnTextChanged="CambiaTextBox1"></asp:TextBox>
<asp:TextBox ID="TextBox2" runat="server" OnTextChanged="CambiaTextBox2"></asp:TextBox>
<asp:TextBox ID="TextBox3" runat="server" OnTextChanged="CambiaTextBox3" Width="147px"></asp:TextBox>
<asp:TextBox ID="TextBox4" runat="server" OnTextChanged="CambiaTextBox4"></asp:TextBox>
<asp:TextBox ID="TextBox5" runat="server" OnTextChanged="CambiaTextBox5"></asp:TextBox>



<asp:Button ID="Button1" runat="server" Text="Query" OnClick="QueryClick" />
<asp:Button ID="Button3" runat="server" Text="Cancella" OnClick="CancellaClick" />
<asp:Button ID="Button2" runat="server" Text="Salva" OnClick="SalvaClick" />

<asp:Button ID="PreviousRecord" runat="server" OnClick="PreviousRecordClick" Text="Record precedente" Width="128px" />
<asp:Button ID="NuovoRecord" runat="server"
Text="Nuovo record" Width="93px" OnClick="NuovoRecordClick" />
<asp:Button ID="NextRecord" runat="server" OnClick="NextRecordClick" Text="Record successivo" Width="128px" />


<asp:TextBox ID="TextBox6" runat="server" Width="782px" ReadOnly="True"></asp:TextBox></div>
</form>
</body>
</html>

------------------------------------------