ti posto tutto:

codice:
<%@ Page Language="VB" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Data.OleDb" %>

<!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">
    <script runat="server">
        Sub Visualizza(ByVal obj As Object, ByVal e As EventArgs)
            Dim conn As New OleDbConnection( _
             "Provider=Microsoft.Jet.OLEDB.4.0;" & _
             "Data Source=C:\Documents and Settings\utente\Documenti\Visual Studio 2005\WebSites\mdb-database\sonda.mdb")
            Dim cmd As OleDbCommand
            Try
                cmd = conn.CreateCommand
                cmd.CommandText = "Insert INTO sondaggio (voto) VALUE (?)"
                cmd.Parameters.Add("?", OleDb.OleDbType.VarChar).Value = risposta.SelectedValue
                conn.Open()
                cmd.ExecuteNonQuery()
                vis.Text = "hai scelto la risposta: " & risposta.SelectedValue
            Finally
                If Not conn Is Nothing Then conn.Close()
            End Try
        
        End Sub
        
        Sub Leggi(ByVal obj As Object, ByVal e As EventArgs)
            Dim objConn As New OleDbConnection( _
             "Provider=Microsoft.Jet.OLEDB.4.0;" & _
             "Data Source=C:\Documents and Settings\utente\Documenti\Visual Studio 2005\WebSites\mdb-database\sonda.mdb")
            
            Dim objCmd As New OleDbCommand("SELECT voto FROM sondaggio", objConn)
        
            Dim objReader As OleDbDataReader
            
            objConn.Open()
            objReader = objCmd.ExecuteReader
            
            While objReader.Read
                Response.Write(objReader.GetString(0) & "
")
                
            End While
            objConn.Close()
        End Sub
    
    </script>


</head>
<body>
    <form id="form1" runat="server">
    <div>
        <font face="arial" size="3pt">Domanda</font>
        <asp:RadioButtonList ID="risposta" runat="server">
            <asp:ListItem Text="Risposta 1" Value="a" />
            <asp:ListItem Text="Risposta 2" Value="b" />
            <asp:ListItem Text="Risposta 3" Value="c" />
            <asp:ListItem Text="Risposta 4" Value="d" />
        </asp:RadioButtonList>

    <asp:Button ID="Button1" onclick="Visualizza" runat="server" Text="Invia" />
    <asp:Button ID="Button2" onclick="Leggi" runat="server" Text="Leggi" />
    </div>
    </form>
    <asp:Label ID="vis" runat="server"></asp:Label>
    
</body>
</html>