protected void button1_Click(object sender, EventArgs e) { DateTime dt = Convert.ToDateTime(TextBox3.Text); DateTime dt1 = Convert.ToDateTime(TextBox4.Text); NewsClass news = new NewsClass(TextBox1.Text, TextBox2.Text, dt, dt1); string result = ConnectionClass.AddNews(news); lblresult.Text = result; }