Hi
i have belwo code and i want if there is value in txtLocation then txtValue should be displayed else Space
cmd0.Parameters.AddWithValue("@Location", txtLocation.Text);
Thanks
Hello jsshivalik,
Try with this
var value = !string.IsNullOrWhiteSpace(txtLocation.Text) ? txtLocation.Text : " ";cmd0.Parameters.AddWithValue("@Location", value);
Thank you.