Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. help in calendar control

help in calendar control

Scheduled Pinned Locked Moved ASP.NET
helpcsharpasp-netdatabasetutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kal2na2
    wrote on last edited by
    #1

    :~ hi I have a problem in my project-I am using asp.net and code-behind is C#.net so in Calendar control I want to restrict the month and the date should gets stored in the database for that I am using Dayrender event and customising the control while running the date gets displayed but there is no restiction in the months and the date is not getting stored at the backend If I put any condition in DayRender event if(e.Day.IsWeekEnd >9 Or e.Day.Date.Year >2100) { e.Day.IsSelectedDate=false; } it shows error in the ".",">","Or" Symbols I dont know how to deal with this .Please as soon as possible kal2na2

    M 1 Reply Last reply
    0
    • K kal2na2

      :~ hi I have a problem in my project-I am using asp.net and code-behind is C#.net so in Calendar control I want to restrict the month and the date should gets stored in the database for that I am using Dayrender event and customising the control while running the date gets displayed but there is no restiction in the months and the date is not getting stored at the backend If I put any condition in DayRender event if(e.Day.IsWeekEnd >9 Or e.Day.Date.Year >2100) { e.Day.IsSelectedDate=false; } it shows error in the ".",">","Or" Symbols I dont know how to deal with this .Please as soon as possible kal2na2

      M Offline
      M Offline
      minhpc_bk
      wrote on last edited by
      #2

      Hi there, There are a couple of syntax errors in there. The e.Day is of the CalendarDay type, you might want to have a look at this type member[^] in MSDN for more information. Also, you might to check out the C# Referefence[^]

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups