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. Problem in selecting a item in dropdown list box of a .aspx page..

Problem in selecting a item in dropdown list box of a .aspx page..

Scheduled Pinned Locked Moved ASP.NET
helpdatabasewpfwcftutorial
4 Posts 3 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.
  • B Offline
    B Offline
    Balagurunathan S
    wrote on last edited by
    #1

    Hi Friends.. I am having a .aspx page in which i have dropdown list box.I am binding values to the dropdownlist from the database..There are five items in the dropdown list box..When i run my .aspx page and select items it is not displayed properly.i.e for example if i select the fourth item the third item is selected..But all the other items which i select are displayed correctly..Only at the time of selecting the fourth item,the third item is shown.What could be the problem ..? Someone help in this regard as early as possible. Regards,

    Balaguru

    M C 2 Replies Last reply
    0
    • B Balagurunathan S

      Hi Friends.. I am having a .aspx page in which i have dropdown list box.I am binding values to the dropdownlist from the database..There are five items in the dropdown list box..When i run my .aspx page and select items it is not displayed properly.i.e for example if i select the fourth item the third item is selected..But all the other items which i select are displayed correctly..Only at the time of selecting the fourth item,the third item is shown.What could be the problem ..? Someone help in this regard as early as possible. Regards,

      Balaguru

      M Offline
      M Offline
      Mujahid Ullah Shaik
      wrote on last edited by
      #2

      Hi Dude !! Keep a debugging point on a selected index change go through the values you will definately know what is happening if you can post a piece of code what you written we can definately help you out by verifying Happy Coding

      modified on Sunday, August 31, 2008 1:54 PM

      1 Reply Last reply
      0
      • B Balagurunathan S

        Hi Friends.. I am having a .aspx page in which i have dropdown list box.I am binding values to the dropdownlist from the database..There are five items in the dropdown list box..When i run my .aspx page and select items it is not displayed properly.i.e for example if i select the fourth item the third item is selected..But all the other items which i select are displayed correctly..Only at the time of selecting the fourth item,the third item is shown.What could be the problem ..? Someone help in this regard as early as possible. Regards,

        Balaguru

        C Offline
        C Offline
        Christian Graus
        wrote on last edited by
        #3

        Balagurunathan S wrote:

        Someone help in this regard as early as possible

        When you're paying for help, you can say stuff like this. It's hard to follow quite what you mean, you're saying that if you select item four and it posts back, item three is shown ? Have you set breakpoints to step through the code and see what's going on ? I doubt we can help you without seeing some code and some comments on what you see in the debugger.

        Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

        B 1 Reply Last reply
        0
        • C Christian Graus

          Balagurunathan S wrote:

          Someone help in this regard as early as possible

          When you're paying for help, you can say stuff like this. It's hard to follow quite what you mean, you're saying that if you select item four and it posts back, item three is shown ? Have you set breakpoints to step through the code and see what's going on ? I doubt we can help you without seeing some code and some comments on what you see in the debugger.

          Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

          B Offline
          B Offline
          Balagurunathan S
          wrote on last edited by
          #4

          Dear Graus, I am just binding values to the dropdownlist from the database using the following code.Here ldset is the dataset ldset = gobjClass.CW_GETBETOPT() Dim lBetViewFilter As New DataView lDataRow = lDataViewFilter.Item(0).Row lBetViewFilter = FindValueInBetViewReturn(ldset, "GAMEID='" &lDataRow("GameID") &"'") Me.DropDownList1.DataSource = lBetViewFilter Me.DropDownList1.DataTextField = "bettypedesc" Me.DropDownList1.DataValueField = "BetTypeId" Me.DropDownList1.DataBind() Me.DropDownList1.SelectedIndex = 0 The problem is exactly what u said that is if i select item four and it posts back, item three is shown ..Kindly help in this regard.. Thanks in Advance..

          Balaguru

          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