To Get Calendar

Chanikya
Posted by Chanikya under ASP.NET category on | Points: 40 | Views : 1157
Calendar.aspx



<%@ Page Language="C#" AutoEventWireup="true" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
protected void Calendar1_DayRender(object sender, DayRenderEventArgs e)
{
if (e.Day.IsToday)
{
Literal Literal1 = new Literal();
Literal1.Text ="<br /><font size=-1 color=Snow>ToDay</font>";

e.Cell.Font.Italic = true;
e.Cell.Font.Size = FontUnit.XLarge;
e.Cell.BackColor = System.Drawing.Color.DodgerBlue;
e.Cell.BorderColor = System.Drawing.Color.SkyBlue;
e.Cell.ForeColor = System.Drawing.Color.Wheat;
e.Cell.Font.Name = "Courier New";

e.Cell.Controls.AddAt(1,Literal1);
}
}
</script>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Calendar</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:HyperLink
ID="HyperLink3"
runat="server"
NavigateUrl="Home.aspx"
Text="| Home |"
Font-Size="Large"
>
</asp:HyperLink>
<asp:HyperLink
ID="HyperLink4"
runat="server"
NavigateUrl="~/Registration.aspx"
Text="| Registration |"
Font-Size="Large"
>
</asp:HyperLink>
<asp:HyperLink
ID="HyperLink6"
runat="server"
NavigateUrl="~/Login.aspx"
Text="| Login |"
Font-Size="Large"
>
</asp:HyperLink>
<asp:HyperLink
ID="HyperLink9"
runat="server"
NavigateUrl="~/FileUpload.aspx"
Text="| To Upload file |"
Font-Size="Large"
>
</asp:HyperLink>
<br />
<h2 style="color:Blue; font-style:italic;">
Calendar
</h2>
<hr width="475px" align="left" color="SlateGray" />
<asp:Calendar
ID="Calendar1"
runat="server"
NextPrevFormat="FullMonth"
ForeColor="WhiteSmoke"
SelectionMode="Day"
DayNameFormat="Full"
Font-Names="Book Antiqua"
Font-Size="Medium"
OnDayRender="Calendar1_DayRender"
>
<DayHeaderStyle
BackColor="OliveDrab"
/>
<DayStyle
BackColor="DarkBlue"
BorderColor="CornflowerBlue"
BorderWidth="1"
Font-Bold="true"
Font-Italic="true"
Font-Size="Large"
/>
<NextPrevStyle
Font-Italic="true"
Font-Names="Arial CE"
/>
<SelectedDayStyle
BackColor="Crimson"
BorderColor="Pink"
/>
<TitleStyle
BackColor="MidnightBlue"
Height="36"
Font-Size="Large"
Font-Names="Courier New Baltic"
/>
</asp:Calendar>
<br />
<asp:HyperLink
ID="HyperLink7"
runat="server"
NavigateUrl="http://smsgupshup.com/groups/friends4ever66"
Text="| Registration for Mobile Alerts |"
Font-Size="Small"
>
</asp:HyperLink>
<br />
<asp:HyperLink
ID="HyperLink1"
runat="server"
NavigateUrl="~/Time.aspx"
Text="| Clik Hear To Get Date & Time |"
Font-Size="Small"
>
</asp:HyperLink>
<br />
<asp:HyperLink
ID="HyperLink5"
runat="server"
NavigateUrl="~/Calendar.aspx"
Text="| Clik Hear To Get Calendar |"
Font-Size="Small"
>
</asp:HyperLink>
<br />
<asp:HyperLink
ID="HyperLink10"
runat="server"
NavigateUrl="~/ImageMap.aspx"
Text="| Click Hear For ImageMap |"
Font-Size="Small"
>
</asp:HyperLink>
<br />
<asp:HyperLink
ID="HyperLink2"
runat="server"
NavigateUrl="~/Day.aspx"
Text="| Clik Hear To Get Date |"
Font-Size="Smaller"
>
</asp:HyperLink>
<br />
<asp:HyperLink
ID="HyperLink8"
runat="server"
NavigateUrl="~/Image.aspx"
Text="| Clik Hear For Image |"
Font-Size="Small"
>
</asp:HyperLink>
<br />
<br />
</div>
</form>
</body>
</html>



http://facebook.com/chanikya.chowdary

http://labs.google.co.in/smschannels/subscribe/My-Heart2U

http://smsgupshup.com/groups/friends4ever66

Comments or Responses

Login to post response