1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
| using System;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
public partial class abonn_new : System.Web.UI.Page
{
protected void Page_Load(object sender, Event)
{
DetailsView1.Focus();
}
protected void SqlDataSource1_Selected(object sender, SqlDataSourceStatusEventArgs e)
{
try
{
// you can check if Select Command is blank etc., etc.,
}
catch
(
SqlException ex)
{
Console.WriteLine(ex.Message);
Console.WriteLine("Mon propre message.");
}
}
} |
Partager