Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 3

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