public Boolean Validdata() { Boolean Valid = true; if (string.IsNullOrEmpty(txtDate.Text)) { Page.ClientScript.RegisterStartupScript(this.GetType(), "Hello", "javascript:alert('Date Not Given')", true); Valid = false; } if (string.IsNullOrEmpty(txtStartTime.Text)) { Page.ClientScript.RegisterStartupScript(this.GetType(), "Hello", "javascript:alert('StartTime Not Given')", true); Valid = false; } return true; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)