protected void Calendar1_SelectionChanged(object sender, EventArgs e)
{
TextBox2.Text = Calendar1.SelectedDate.ToShortDateString();
}
protected void Calendar2_SelectionChanged(object sender, EventArgs e)
{
TextBox4.Text = Calendar2.SelectedDate.ToShortDateString();
}
protected void insert_Click(object sender, EventArgs e)
{
string str = TextBox4.Text;
if (TextBox2.Text.Equals(str))
{
Response.Write(@"<script language='javascript'>alert('wedding date and birth date should not be same');</script>");
}
else
{
}
}