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. To enter the date using three dropdown lists

To enter the date using three dropdown lists

Scheduled Pinned Locked Moved ASP.NET
databasehelp
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.
  • A Offline
    A Offline
    Anjani Poornima
    wrote on last edited by
    #1

    hi, i like to enter the date using three drop down lists i.e in the first dropdownlist it must show date 1 to 31 In second drop down list it must show names of the months like jan, feb,mar,apr..... In third drop down list it must show the years 1.e from 1947 to current year (2009). And one more is in my databse i like to save my date in the format of 1/01/2000. how i can change my string value jan,feb to int value i.e 01,02... in the database. Plz help me by posting the code...its very urgent.... Thanx in advance

    P 1 Reply Last reply
    0
    • A Anjani Poornima

      hi, i like to enter the date using three drop down lists i.e in the first dropdownlist it must show date 1 to 31 In second drop down list it must show names of the months like jan, feb,mar,apr..... In third drop down list it must show the years 1.e from 1947 to current year (2009). And one more is in my databse i like to save my date in the format of 1/01/2000. how i can change my string value jan,feb to int value i.e 01,02... in the database. Plz help me by posting the code...its very urgent.... Thanx in advance

      P Offline
      P Offline
      Parwej Ahamad
      wrote on last edited by
      #2

      Dropdown List containing two property one is "Text" and other is "Value". Now Text field you can use month name and Value field you can use as number value.

      <asp:DropDownList ID="t" runat="server">
      <asp:ListItem Text="Jan" Value="01"></asp:ListItem>
      </asp:DropDownList>

      Parwej Ahamad

      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