string todaydate= DateTime.Now.ToString(); if(todaydate!=todayDate.Text)//todayDate is your textbox { Page.ClientScript.RegisterStartupScript(GetType(), "msgbox", "alert('Date entered is incorrect!');", true); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)