Results 1 to 2 of 2

Thread: ASP.Net Calendar Control

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2002
    Posts
    1

    ASP.Net Calendar Control

    Hi,may i know how to highlight the specified dates of the month i want?? Let's say for March, according the user specified dates in my database, how am i able to highlight the dates on the calendar in red? Thanks

  2. #2
    Addicted Member Dmyze's Avatar
    Join Date
    Mar 2002
    Location
    Seattle
    Posts
    160
    This would make 4/9/2003 have a Red background.

    VB Code:
    1. Private Sub cMain_DayRender(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DayRenderEventArgs) Handles cMain.DayRender
    2.  
    3.  
    4.    If e.Day.Date.ToShortDateString = "4/9/2003" then
    5.         e.Cell.BorderColor = System.Drawing.Color.Red
    6.     End If
    -Daryl
    "Two More Rolls of Duct tape, and the world is mine!"
    VB.NET Guru

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width