Disable Date in Calendar

Posted by Saranram under ASP.NET on 10/29/2009 | Views : 4268 | Status : [Member] | Replies : 4
Hi,
I need to know that how to disable date for previous month and next month date in current month in Calendar in asp.net

Saran


Responses

Posted by: Vuyiswamb on: 10/29/2009 [Member] [MVP] [Administrator] NotApplicable

Up
0
Down
on Page Load of your page that Host your Calender control. Put this code


protected void Page_Load(object sender, EventArgs e)
{
calender1.NextMonthText = string.Empty;
calender1.PrevMonthText = string.Empty;
}


Thank you for Posting at DotnetFunda


Vuyiswa Maseko


Thank you for posting at Dotnetfunda
[Administrator]

Saranram, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Bubbly on: 11/2/2009 [Member] Bronze

Up
0
Down
Hello,

You can check this link

www.codeproject.com/KB/aspnet/Disable_Selected_Dates.aspx

++
Thanks & Regards,
Deepika

Saranram, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Saranram on: 11/7/2009 [Member] Starter

Up
0
Down
hi,
I used the following code
calender1.NextMonthText = string.Empty;
calender1.PrevMonthText = string.Empty;
.

the date is empty but one can click the date.Here I need to invisible the date as well as not able to access the date.




Saran

Saranram, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vuyiswamb on: 11/19/2009 [Member] [MVP] [Administrator] NotApplicable

Up
0
Down
Can you please Explain clearly your Problem.

Thank you for posting at Dotnetfunda
[Administrator]

Saranram, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response