Pls somebody help in date control. I want to store the date in textbox. behind the textbox one imagbutton will be there if i click on image button calender will be opened. Once the calender is opened calender should show current date onwards all feature dates are selectable but old or previous should be unelectable. After this once i select the selectable date from calender that will be stored in textbox. pls somebody help me with C# code how can i do this...
Thanks,
India

Amit ChoudharyRank #145 · 15.8K reputationPosted Feb 24, 2010, 9:37 PM EST
you want that calender in which application is it windows application or Asp.net?? Give an idea
Diptimaya PatraRank #113 · 19.8K reputationPosted Feb 24, 2010, 10:32 PM EST
kiran kumarRank #3,110 · 461 reputationPosted Feb 24, 2010, 11:16 PM EST
try this code
using System.Drawing;
public partial class DefaultCS : System.Web.UI.Page
{
protected void Calendar1_DayRender(object sender, System.Web.UI.WebControls.DayRenderEventArgs e)
{
// Select all dates in the past
if (e.Day.Date < System.DateTime.Today)
{
// Disable date
e.Day.IsSelectable = false;
// Change color of disabled date
e.Cell.ForeColor = Color.Gray;
}
}
}