Click here to Skip to main content
15,924,935 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: calendercontrol with check box Pin
Venkatesh Mookkan1-Jan-07 18:24
Venkatesh Mookkan1-Jan-07 18:24 
GeneralRe: calendercontrol with check box Pin
sridevi141-Jan-07 18:49
sridevi141-Jan-07 18:49 
GeneralRe: calendercontrol with check box Pin
Venkatesh Mookkan1-Jan-07 19:10
Venkatesh Mookkan1-Jan-07 19:10 
GeneralRe: calendercontrol with check box Pin
sridevi141-Jan-07 19:23
sridevi141-Jan-07 19:23 
GeneralRe: calendercontrol with check box Pin
Venkatesh Mookkan1-Jan-07 20:51
Venkatesh Mookkan1-Jan-07 20:51 
GeneralRe: calendercontrol with check box Pin
sridevi141-Jan-07 21:32
sridevi141-Jan-07 21:32 
GeneralRe: calendercontrol with check box Pin
Venkatesh Mookkan1-Jan-07 21:40
Venkatesh Mookkan1-Jan-07 21:40 
GeneralRe: calendercontrol with check box Pin
sridevi142-Jan-07 15:35
sridevi142-Jan-07 15:35 
<asp:calendar id="Calendar" runat="server" width="75" selecteddate="01-01-2007"
="" onselectionchanged="Date_Selected" dayheaderstyle-backcolor="ActiveBorder" daynameformat="Short" font-names="Verdana;Arial" font-size="12px" height="180px" todaydaystyle-font-bold="True" dayheaderstyle-font-bold="True" othermonthdaystyle-forecolor="gray" titlestyle-backcolor="#3366ff" titlestyle-forecolor="white" titlestyle-font-bold="True" selecteddaystyle-backcolor="#ffcc66" selecteddaystyle-font-bold="True" nextprevformat="ShortMonth" nextprevstyle-forecolor="white" nextprevstyle-font-size="10px" selectorstyle-backcolor="#99ccff" selectorstyle-forecolor="navy" selectorstyle-font-size="9px" selectweektext="week" selectmonthtext="month" ondayrender="Calendar_DayRender">

<asp:button id="btnsubmit" runat="server" text="Select the Date" onclick="btnsubmit_Click">
   <asp:label id="lblcal" runat="server" width="50%">




code to get checkbox in calender control:


//function to get checkbox in calender
protected void Calendar_DayRender(object sender, DayRenderEventArgs e)
{
CalendarDay cd = e.Day;
string cid = "" + e.Day.Date.ToString("ddmmyyyy");
cb.ID = cid;
e.Cell.BackColor = Color.BurlyWood;
//e.Cell.BackColor = Color.Yellow;
DateTime theDate = e.Day.Date;
if (cd.IsWeekend)
{
e.Cell.BackColor = Color.Brown;
// e.Cell.BackColor = Color.SkyBlue;
}
e.Cell.Controls.Add(cb);
}


//function to display the date selected by user
protected void btnsubmit_Click(object sender, EventArgs e)
{
if (cb != null)
{

if (cb.Checked)
{
lblcal.Text = Calendar.SelectedDate.ToShortDateString();
}
//else
//{
// lblcal.Text = "No Date is Slected!";
//}
}
Response.Write("The selected date is :" + Calendar.SelectedDate.ToShortDateString());

}

hope this wuld help u.
GeneralRe: calendercontrol with check box Pin
Venkatesh Mookkan2-Jan-07 16:46
Venkatesh Mookkan2-Jan-07 16:46 
Questiondefinition for Config in asp.net Pin
sridevi141-Jan-07 16:28
sridevi141-Jan-07 16:28 
AnswerRe: definition for Config in asp.net Pin
Venkatesh Mookkan1-Jan-07 21:13
Venkatesh Mookkan1-Jan-07 21:13 
GeneralRe: definition for Config in asp.net Pin
sridevi141-Jan-07 21:34
sridevi141-Jan-07 21:34 
AnswerRe: definition for Config in asp.net Pin
DavidNohejl1-Jan-07 22:24
DavidNohejl1-Jan-07 22:24 
QuestionSend Email Pin
ADY0071-Jan-07 14:26
ADY0071-Jan-07 14:26 
AnswerRe: Send Email Pin
Amit Kumar G1-Jan-07 16:21
Amit Kumar G1-Jan-07 16:21 
GeneralRe: Send Email Pin
ADY0072-Jan-07 4:38
ADY0072-Jan-07 4:38 
GeneralRe: Send Email Pin
RichardGrimmer3-Jan-07 5:12
RichardGrimmer3-Jan-07 5:12 
GeneralRe: Send Email Pin
ADY0073-Jan-07 6:18
ADY0073-Jan-07 6:18 
GeneralRe: Send Email Pin
RichardGrimmer3-Jan-07 8:49
RichardGrimmer3-Jan-07 8:49 
QuestionBad performance with web controls? Pin
Victor Blomberg1-Jan-07 12:21
Victor Blomberg1-Jan-07 12:21 
AnswerRe: Bad performance with web controls? Pin
Grapes-R-Fun1-Jan-07 16:06
Grapes-R-Fun1-Jan-07 16:06 
GeneralRe: Bad performance with web controls? Pin
Victor Blomberg1-Jan-07 23:33
Victor Blomberg1-Jan-07 23:33 
GeneralRe: Bad performance with web controls? Pin
Grapes-R-Fun2-Jan-07 2:17
Grapes-R-Fun2-Jan-07 2:17 
GeneralBlurry Images... [modified] Pin
code-frog1-Jan-07 5:53
professionalcode-frog1-Jan-07 5:53 
GeneralRe: Blurry Images...??? Pin
code-frog1-Jan-07 6:20
professionalcode-frog1-Jan-07 6:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.