Hi, I am using asp:calender and want to change the formate. How it possible ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Shreeharsha B R
    New Member
    • Jan 2011
    • 2

    Hi, I am using asp:calender and want to change the formate. How it possible ?

    <asp:Calendar ID="Calendar1" runat="server" Height="155px" Width="199px"
    BackColor="#FFF FCC" BorderColor="#F FCC66" BorderWidth="1p x"
    DayNameFormat=" Shortest" Font-Names="Verdana" Font-Size="8pt"
    ForeColor="#663 399" ShowGridLines=" True" Visible="False"
    VisibleDate="1/1/0001" CellSpacing="2" FirstDayOfWeek= "Sunday"
    NextPrevFormat= "ShortMonth " onselectionchan ged="Calendar1_ SelectionChange d">
    <SelectedDaySty le BackColor="#CCC CFF" Font-Bold="True" />
    <SelectorStyl e BackColor="#FFC C66" />
    <TodayDayStyl e BackColor="#FFC C66" ForeColor="Whit e" />
    <OtherMonthDayS tyle ForeColor="#CC9 966" />
    <NextPrevStyl e Font-Size="9pt" ForeColor="#FFF FCC" />
    <DayHeaderSty le BackColor="#FFC C66" Font-Bold="True" Height="1px" />
    <TitleStyle BackColor="#990 000" Font-Bold="True" Font-Size="9pt"
    ForeColor="#FFF FCC" />
    </asp:Calendar>
  • Rohit Garg
    New Member
    • Jul 2010
    • 8

    #2
    You can use some built in formats present in VS. In design view right click the calendar and click Show Smart Tag and then choose Auto Format. There are a number of built in formats present for the calendar.

    Otherwise you can just format the calendar as you wish by setting value of its attribute(color s for various properties) in the property window.

    Comment

    Working...