I want to save NULL in database for column while textbox is empty. Here is my code,
cmd.Parameters.AddWithValue("@RedirectUris", ((RedirectUris.Text == "") ? DBNull.Value.ToString() : RedirectUris.Text));
where RedirectUris is textbox id.
In this scenario database is saving empty value not as NULL.
Please help me to do this.