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. Other Discussions
  3. IT & Infrastructure
  4. previous data should not be append in my dropdownlist in asp.net 2005 with c#

previous data should not be append in my dropdownlist in asp.net 2005 with c#

Scheduled Pinned Locked Moved IT & Infrastructure
csharphelpasp-net
1 Posts 1 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.
  • P Offline
    P Offline
    priyamsc
    wrote on last edited by
    #1

    hi, first i had the problem. tat is whenever i select the data it is added the previous value. so i have given [dd2.items.clear()]now its working but the problem is if it has only one value i cant select..so this is my problem... I have used 4 dropdownlist in tat if i select first dropdownlist then the based on the selectedvalue data will be bound in second dropdownlist but if it has only one value then i could not bound in next dropdownlist.i have written all the codings in dropdownlist_selectedindexchanged()... --------Select-------------- c# coding --------- dd3.Items.Clear(); string b = "select distinct a.descriptions,b.depid from Helpdesk_swift a,Helpdesk_pc_link b where a.swiftid='dep' and b.blockid=" + dd1.SelectedValue + " and b.locationid=" + dd2.SelectedValue + " and a.sid=b.depid"; SqlDataAdapter adp1 = new SqlDataAdapter(b, con); DataSet ds = new DataSet(); adp1.Fill(ds); dd3.DataSource = ds; dd3.DataTextField = "descriptions"; dd3.DataValueField = "depid"; dd3.DataBind(); so any one help me to do this....pls very urgent

    k.priya

    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