if (textBox1.Text == DBNull.Value.ToString()) { your message }
$("#btnSubmit").Click(function(){ var textboxstring = $("#textboxId").text; if(textboxstring == "") { alert("text box in empty"); } });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)