Results 1 to 13 of 13

Thread: Combo Box Choices Messed Up

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2006
    Location
    Florida, USA
    Posts
    565

    Combo Box Choices Messed Up

    I have a combo box that looks great in the designer, the list of choices are perfect. But when I view the ASP code, or the published webpage the choices are seriously garbled. I have tried adding items, but it does not seem to regenerate the code. Any ideas why it happened and what I should do? I do most of my editing through the designer GUI. Thanks!

    Note the blank items and even items mixed up together: TVCricket
    asp Code:
    1. <asp:DropDownList ID="ddlFoundOut" runat="server">
    2.                         <asp:ListItem Selected="True">(Pick how you found out about us)</asp:ListItem>
    3.                         <asp:ListItem>Another Store</asp:ListItem>
    4.                         <asp:ListItem>Banner at Arena</asp:ListItem>
    5.                         <asp:ListItem>TVCricket</asp:ListItem>
    6.                         <asp:ListItem>West NewsmagazineClear</asp:ListItem>
    7.                         <asp:ListItem>Driving By</asp:ListItem>
    8.                         <asp:ListItem>Friend/Co-worker</asp:ListItem>
    9.                         <asp:ListItem>Internet</asp:ListItem>
    10.                         <asp:ListItem>Mall Sign</asp:ListItem>
    11.                         <asp:ListItem>Online Phone Book</asp:ListItem>
    12.                         <asp:ListItem>Phonebook (paper)</asp:ListItem>
    13.                         <asp:ListItem>Radio</asp:ListItem>
    14.                         <asp:ListItem></asp:ListItem>
    15.                         <asp:ListItem></asp:ListItem>
    16.                         <asp:ListItem>Other</asp:ListItem>
    17.                         <asp:ListItem>Other Magazine</asp:ListItem>
    18.                         <asp:ListItem>Other News Paper</asp:ListItem>
    19. </asp:DropDownList>
    I use VB .NET 2022. Currently developing StudyX educational software, PlazSales POS system and Yargis a space ship shooter game.

  2. #2
    Discovering Life Siddharth Rout's Avatar
    Join Date
    Feb 2005
    Location
    Mumbai, India
    Posts
    12,001

    Re: Combo Box Choices Messed Up

    I don't see any syntax errors... Can you show a snapshot of what you mean by 'Garbled'
    A good exercise for the Heart is to bend down and help another up...
    Please Mark your Thread "Resolved", if the query is solved


    MyGear:
    ★ CPU ★ Ryzen 5 5800X
    ★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
    ★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
    ★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
    ★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
    ★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
    ★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
    ★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
    ★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
    ★ Keyboard ★ TVS Electronics Gold Keyboard
    ★ Mouse ★ Logitech G502 Hero

  3. #3
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Combo Box Choices Messed Up

    Thread moved from 'ASP, VB Script' forum to 'ASP.Net' forum

  4. #4
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Combo Box Choices Messed Up

    I agree with koolsid, there is nothing obviously standing out.

    Have you got any code in the Code Behind page that is affecting the DropDownList, or do you do it all through the markup?

    Gary

  5. #5
    Frenzied Member
    Join Date
    Mar 2004
    Location
    Orlando, FL
    Posts
    1,618

    Re: Combo Box Choices Messed Up

    Have you tried just fixing it in the markup?
    Sean

    Some days when I think about the next 30 years or so of my life I am going to spend writing code, I happily contemplate stepping off a curb in front of a fast moving bus.

  6. #6

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2006
    Location
    Florida, USA
    Posts
    565

    Re: Combo Box Choices Messed Up

    I have tried fixing it in the markup, and it works great. But if I try and use the Designer GUI builder everything gets messed up. I think I may have had the same problem in VS2008. Maybe I just click too quick for it to keep up with. I wish Microsoft would fix this issue.

    Quote Originally Posted by SeanGrebey View Post
    Have you tried just fixing it in the markup?
    I use VB .NET 2022. Currently developing StudyX educational software, PlazSales POS system and Yargis a space ship shooter game.

  7. #7
    Frenzied Member
    Join Date
    Mar 2004
    Location
    Orlando, FL
    Posts
    1,618

    Re: Combo Box Choices Messed Up

    Quote Originally Posted by rex64 View Post
    I have tried fixing it in the markup, and it works great. But if I try and use the Designer GUI builder everything gets messed up. I think I may have had the same problem in VS2008. Maybe I just click too quick for it to keep up with. I wish Microsoft would fix this issue.
    Will it re-mess it up once you fix it, or will only new ones be messed up?
    Sean

    Some days when I think about the next 30 years or so of my life I am going to spend writing code, I happily contemplate stepping off a curb in front of a fast moving bus.

  8. #8
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Combo Box Choices Messed Up

    Hey,

    I am still not sure that I follow the issue that you are having?!?

    Can you detail the steps that you take to reproduce the issue? See if we can replicate it.

    Gary

  9. #9

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2006
    Location
    Florida, USA
    Posts
    565

    Re: Combo Box Choices Messed Up

    Sure. Basically I add about 10 elements. Then I add 5 more and re-arrange them with the up and down arrows quickly (very quickly with double, triple, and more clicks, I am happy clicker). After that I publish the page (or just look at the code) and some of the elements get combined into 1, and I end up with some blank elements.

    Quote Originally Posted by gep13 View Post
    Hey,

    I am still not sure that I follow the issue that you are having?!?

    Can you detail the steps that you take to reproduce the issue? See if we can replicate it.

    Gary
    I use VB .NET 2022. Currently developing StudyX educational software, PlazSales POS system and Yargis a space ship shooter game.

  10. #10
    Frenzied Member
    Join Date
    Mar 2004
    Location
    Orlando, FL
    Posts
    1,618

    Re: Combo Box Choices Messed Up

    Quote Originally Posted by gep13 View Post
    Hey,

    I am still not sure that I follow the issue that you are having?!?

    Can you detail the steps that you take to reproduce the issue? See if we can replicate it.

    Gary
    Look at the bolded lines, the designers mucking up his markup.

    Code:
    1.
          <asp:DropDownList ID="ddlFoundOut" runat="server">
       2.
                                  <asp:ListItem Selected="True">(Pick how you found out about us)</asp:ListItem>
       3.
                                  <asp:ListItem>Another Store</asp:ListItem>
       4.
                                  <asp:ListItem>Banner at Arena</asp:ListItem>
       5.
                                  <asp:ListItem>TVCricket</asp:ListItem>
       6.
                                  <asp:ListItem>West NewsmagazineClear</asp:ListItem>
       7.
                                  <asp:ListItem>Driving By</asp:ListItem>
       8.
                                  <asp:ListItem>Friend/Co-worker</asp:ListItem>
       9.
                                  <asp:ListItem>Internet</asp:ListItem>
      10.
                                  <asp:ListItem>Mall Sign</asp:ListItem>
      11.
                                  <asp:ListItem>Online Phone Book</asp:ListItem>
      12.
                                  <asp:ListItem>Phonebook (paper)</asp:ListItem>
      13.
                                  <asp:ListItem>Radio</asp:ListItem>
      14.
                                  <asp:ListItem></asp:ListItem>
      15.
                                  <asp:ListItem></asp:ListItem>
      16.
                                  <asp:ListItem>Other</asp:ListItem>
      17.
                                  <asp:ListItem>Other Magazine</asp:ListItem>
      18.
                                  <asp:ListItem>Other News Paper</asp:ListItem>
      19.
          </asp:DropDownList>
    Sean

    Some days when I think about the next 30 years or so of my life I am going to spend writing code, I happily contemplate stepping off a curb in front of a fast moving bus.

  11. #11
    Discovering Life Siddharth Rout's Avatar
    Join Date
    Feb 2005
    Location
    Mumbai, India
    Posts
    12,001

    Re: Combo Box Choices Messed Up

    Why not delete it and manually type those instead doing it from the designer? Or am I missing something here?
    A good exercise for the Heart is to bend down and help another up...
    Please Mark your Thread "Resolved", if the query is solved


    MyGear:
    ★ CPU ★ Ryzen 5 5800X
    ★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
    ★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
    ★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
    ★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
    ★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
    ★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
    ★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
    ★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
    ★ Keyboard ★ TVS Electronics Gold Keyboard
    ★ Mouse ★ Logitech G502 Hero

  12. #12

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2006
    Location
    Florida, USA
    Posts
    565

    Re: Combo Box Choices Messed Up

    Yes, I already fixed it that way. But I was just curious if there is anything I can do to fix the designer? Or should I click slower? Is there a work around? Is there a way to get ASP to automatically rebuild the code?

    Quote Originally Posted by koolsid View Post
    Why not delete it and manually type those instead doing it from the designer? Or am I missing something here?
    I use VB .NET 2022. Currently developing StudyX educational software, PlazSales POS system and Yargis a space ship shooter game.

  13. #13
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Combo Box Choices Messed Up

    Doh, now I see what you are saying.

    Didn't catch that one

    If I were you, I would submit this as a bug directly to Microsoft, and see if there is something that they can suggest.

    Gary

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width