codice:
<body>
	<form id="Form1" method="post" runat="server">
		<asp:Panel id="Panel1" runat="server" CssClass="tabellabianca" Width="342px">
			<TABLE id="Table1" style="WIDTH: 323px; HEIGHT: 55px" cellSpacing="1" cellPadding="1" width="323" border="0">
				<TR>
					<TD style="WIDTH: 50px">Nome: </TD>
					<TD style="WIDTH: 122px">
						<asp:TextBox id="TextBox1" runat="server" Width="112px"></asp:TextBox></TD>
					<TD>
						<asp:RequiredFieldValidator id="RequiredFieldValidator1" runat="server" ErrorMessage="Nome è obbligatorio" ControlToValidate="TextBox1" Width="132px"></asp:RequiredFieldValidator></TD>
				</TR>
				<TR>
					<TD colSpan="3">
						<asp:Button id="Button1" runat="server" Text="Invia"></asp:Button></TD>
				</TR>
			</TABLE>
		</asp:Panel>
	</form>
</body>
In questa paginetta ho un TextBox, Un Button ed un RequiredFieldValidator.

Come avere un messaggio di conferma se inviare on no il form?

Questo codice non funziona
codice:
    Private Sub Button1_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Init
        Me.Button1.Attributes.Add("onclick", "return confirm('Confermi l\'invio?')")
    End Sub