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. Country Drop Down List in Asp.net

Country Drop Down List in Asp.net

Scheduled Pinned Locked Moved ASP.NET
databasehelpcsharpasp-netmysql
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.
  • R Offline
    R Offline
    rajanji
    wrote on last edited by
    #1

    Hi All, I am creating a job portal in asp.net2.0 and mysql as backend.... I want to create a drop down list.... which displays the list of states according to the country selected in the first dropdownlist by the user.. i have used the sqldatasource and wen i am inserting the following select query => "select statename from state where countryname=@countryname"... its not working for the mysql :omg: ... though its working very fine if i use the database as MSSQL :) .... Plz help to solve this problem... Thanks in Advance.... :thumbsup: Regards, Rajan Arora :-D

    N 1 Reply Last reply
    0
    • R rajanji

      Hi All, I am creating a job portal in asp.net2.0 and mysql as backend.... I want to create a drop down list.... which displays the list of states according to the country selected in the first dropdownlist by the user.. i have used the sqldatasource and wen i am inserting the following select query => "select statename from state where countryname=@countryname"... its not working for the mysql :omg: ... though its working very fine if i use the database as MSSQL :) .... Plz help to solve this problem... Thanks in Advance.... :thumbsup: Regards, Rajan Arora :-D

      N Offline
      N Offline
      nitin_vatsus
      wrote on last edited by
      #2

      You can copy this code from any website for example nokri.com which having all combo of this type but if you need it originally then lot of site provide complete list of same. Code 1. Just fill all the entry into combo and Enable post back. 2. On Change of first combo fill the sate for country according to country name. 3. Then same for city Table CountryName, StateName, CityName

      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