I am inserting values into the table, but i am getting error as
Conversion failed when converting the nvarchar value '2015 / 03 / 02' to data type int.
See my code:-
protected void btnSubmit_Click(object sender, EventArgs e)
{
if (Request.QueryString.Count > 0)
{
using (SqlConnection conn = new SqlConnection(conString))
if (Request.QueryString["Id"] != null)
{
string Id = Request.QueryString["Id"];
SqlCommand cmd = new SqlCommand();
cmd.CommandText = " Update tbl_post SET NgoId=@NgoId,cat_id=@cat_id,dateforPost=@dateforPost,UserId=@UserId, title=@title,description=@description, active=@active Where Id=@Id";
cmd.Parameters.AddWithValue("@Id", Id);
cmd.Parameters.AddWi ...
Go to the complete details ...