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
  1. Home
  2. Web Development
  3. ASP.NET
  4. validation for dates

validation for dates

Scheduled Pinned Locked Moved ASP.NET
question
5 Posts 5 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.
  • T Offline
    T Offline
    Thanusree Duth
    wrote on last edited by
    #1

    Hi, I have two calendar extendars and two textboxes for fromDate and toDate in my project.When project runs,current date will be shown as default in two textboxes.What will i do for this?:confused:

    B L R T 4 Replies Last reply
    0
    • T Thanusree Duth

      Hi, I have two calendar extendars and two textboxes for fromDate and toDate in my project.When project runs,current date will be shown as default in two textboxes.What will i do for this?:confused:

      B Offline
      B Offline
      Brij
      wrote on last edited by
      #2

      Thanusree Duth wrote:

      When project runs,current date will be shown as default in two textboxes

      What do you actually want? Change the default values as per your requirement.

      Cheers!! Brij Check my latest Article :A walkthrough to Application State

      1 Reply Last reply
      0
      • T Thanusree Duth

        Hi, I have two calendar extendars and two textboxes for fromDate and toDate in my project.When project runs,current date will be shown as default in two textboxes.What will i do for this?:confused:

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        you can set value in text while page load itselt

        1 Reply Last reply
        0
        • T Thanusree Duth

          Hi, I have two calendar extendars and two textboxes for fromDate and toDate in my project.When project runs,current date will be shown as default in two textboxes.What will i do for this?:confused:

          R Offline
          R Offline
          raju melveetilpurayil
          wrote on last edited by
          #4

          Thanusree Duth wrote:

          urrent date will be shown as default in two textboxes

          Setting Current Date in two TextBox

          protected void Page_Load(object sender, EventArgs e)
          {
          string currentDate= DateTime.Now.ToShortDateString();
          fromDate.Text = currentDate;
          toDate.Text = currentDate;
          }

          1 Reply Last reply
          0
          • T Thanusree Duth

            Hi, I have two calendar extendars and two textboxes for fromDate and toDate in my project.When project runs,current date will be shown as default in two textboxes.What will i do for this?:confused:

            T Offline
            T Offline
            Tej Aj
            wrote on last edited by
            #5

            check this post to Initialize current date in textbox Tej Aj, Initialize current date in textbox[^] Fan of: http://www.abtstudioz.com/[^]

            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