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
kiran kumarPosted Feb 25, 2010, 4:16 AM
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;
}
}
}
Diptimaya PatraPosted Feb 25, 2010, 3:32 AM
Amit ChoudharyPosted Feb 25, 2010, 2:37 AM
you want that calender in which application is it windows application or Asp.net?? Give an idea