Context.Server.HtmlDecode(row.Cells[1].Text)
Kullanımı;
foreach (GridViewRow row in grdExcel.Rows)
{
SqlCommand sorgu = new SqlCommand("insert into VatmanBilgisi (vatmanNumarasi,vatmanAdiSoyadi) values ('" + row.Cells[0].Text + "','" + Context.Server.HtmlDecode(row.Cells[1].Text) + "')", baglanti);
sorgu.ExecuteNonQuery();
}
Hiç yorum yok:
Yorum Gönder