0% found this document useful (0 votes)
39 views3 pages

18.calendar Control: October 9, 2014

This document provides an algorithm for creating a calendar control program in ASP.NET using Visual Studio 2010. It includes 6 steps: 1) Start the program in Visual Studio 2010, 2) Create a new project and select the calendar control, 3) Name the project, 4) Drag and drop the calendar onto a form and modify its properties, 5) Display the output in a browser, and 6) Stop the program. It then provides code for handling calendar events like selecting a date or changing the visible month. The output confirms the calendar control program was successfully executed.

Uploaded by

Amutha Arun
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views3 pages

18.calendar Control: October 9, 2014

This document provides an algorithm for creating a calendar control program in ASP.NET using Visual Studio 2010. It includes 6 steps: 1) Start the program in Visual Studio 2010, 2) Create a new project and select the calendar control, 3) Name the project, 4) Drag and drop the calendar onto a form and modify its properties, 5) Display the output in a browser, and 6) Stop the program. It then provides code for handling calendar events like selecting a date or changing the visible month. The output confirms the calendar control program was successfully executed.

Uploaded by

Amutha Arun
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd

18.

CALENDAR CONTROL October 9, 2014


AIM
To write a ASP.NET program for calendar control.
ALGORITHM
STEP 1: Start te program in te !icro"oft #i"$al St$dio 2010
STEP 2: %ile&'New&'Pro(ect "elect te pro(ect t)pe a" *i"$al ba"ic and "elect te pro(ect
t)pe a" *i"$al ba"ic and "elect te *i"$al "t$dio in"talled template a" window"
application
STEP 3: +oo"e a Name, ,ocation and "ol$tion name
STEP 4: To drag and drop te calendar control in a form, to cange te calendar propert)
in de"ign time.
STEP 5: To di"pla) te o$tp$t in brow"er.
STEP 6: Stop te program
12PA01 Page 74
18.CALENDAR CONTROL October 9, 2014
CODING
P$blic +la"" -eb%orm1
.nerit" S)"tem.-eb./..Page
Pri*ate S$b +alendar101a)2ender34)#al "ender A" Ob(ect, 4)#al e A"
S)"tem.-eb./..-eb+ontrol".1a)2enderE*entArg"5 6andle" +alendar1.1a)2ender
.f e.1a).."Toda) Ten
,abel1.Te7t 8 9Toda) date i" 9 : e.1a).1ate
El"e.f e.1a).."Selected And e.1a).."-ee;end Ten
,abel1.Te7t 8 9Te "elected da) i" a olida)9
End .f
End S$b
Protected S$b +alendar10Selection+anged34)#al "ender A" Ob(ect, 4)#al e A" E*entArg"5
6andle" +alendar1.Selection+anged
.f 3+alendar1.Selected1ate.1ate.!ont 8 105 Ten
,abel1.Te7t 8 92emainder9
End .f
End S$b
Pri*ate S$b +alendar10#i"ible!ont+anged34)#al "ender A" Ob(ect, 4)#al e A"
S)"tem.-eb./..-eb+ontrol".!ont+angedE*entArg"5 6andle"
+alendar1.#i"ible!ont+anged
.f e.New1ate.!ont ' e.Pre*io$"1ate.!ont Ten
,abel2.Te7t 8 9<o$ mo*ed a mont forward9
El"e
,abel2.Te7t 8 9<o$ mo*ed a mont bac;ward9
End .f
End S$b
12PA01 Page 75
18.CALENDAR CONTROL October 9, 2014
OUTPUT
RESULT
T$" te calendar control program in ASP.NET wa" e7ec$ted "$cce""f$ll).
12PA01 Page 76

You might also like