Hi all.
I am trying to insert two fields(name,age) in database.
I want when i left these fields it should insert NULL in database.
Plz see my code.
Dal.cs
public int save(string name, int age) {
con.Close();
con.Open();
cmd = new SqlCommand("insert into Akhil values('"+name +"',"+age+")", con);
int temp = cmd.ExecuteNonQuery();
return temp;
}
aspx.cs
Go to the complete details ...