proszę stworzyć dodatkową kolumnę w bazie i pole w bazie
protected void Button1_Click(object sender, EventArgs e) { string data = DateTime.Now.ToLongDateString() + ", " + DateTime.Now.ToLongTimeString() + ": "; SqlDataSource1.InsertCommand = "INSERT INTO ListaAdresow (adres) VALUES ('" + TextBox1.Text + "')"; try { SqlDataSource1.Insert(); Label1.Text += data + "dodałem adres " + TextBox1.Text + "<BR>"; TextBox1.Text = ""; } catch (Exception exc) { Label1.Text += data + "<FONT COLOR=red>" + exc.Message + "</FONT><BR>"; } }
Proszę o odp bo bez tego ani rusz ;/