Just open connection and use SQLCommand object.
SqlConnection con = new SqlConnection(clsGlobal.sConnection );
SqlCommand com = new SqlCommand();
com.CommandText = "DELETE FROM tblSectionInPage WHERE PageId=" +
_iPageId.ToString();
com.CommandType = CommandType.Text;
con.Open();
try
{
com.ExecuteNonQuery();
}
finally
{
con.Close();
}
George
"Joey D" <jo**@ultraweaver.com> wrote in message
news:11*********************@g14g2000cwa.googlegro ups.com...
Hi,
I am moving from classic ASP to ASP.NET 2.0. I have gone through the
quick start info. One of my top questions is on insert/update/delete
statements. I am unable to find examples/walk-throughs on how to do
this in 2.0 (without using the server controls like gridview). Can
anyone point out walk throughs or examples of how to do this?
Thanks,
William D.
http://www.ultraweaver.com