How to show pop-up message with calendar control
i want when i click the date in calendar i want message as today date is appointment day showing that message in pop screen not in that calendar (run mode)
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Posted Feb 10, 2012, 6:53 AM EST
Satyapriya NayakRank #47 · 31.5K reputationPosted Feb 10, 2012, 8:03 AM EST
Try this...
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm2.aspx.cs" Inherits="WebApplication9.WebForm2" %>
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Drawing;
namespace WebApplication9
{
public partial class WebForm2 : System.Web.UI.Page
{
protected void Calendar1_DayRender(object sender, DayRenderEventArgs e)
{
if (e.Day.DayNumberText.ToString() == "18")
{
e.Cell.Attributes.Add("onclick", "javascript:alert('Today date is appointment day')");
}
}
}
}
Thanks
If this post helps you mark it as answer