Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6609707
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:44:59+00:00 2026-05-25T19:44:59+00:00

I was wondering why the following code: <asp:ComboBox ID=DropDown1 runat=server Width=30px AutoCompleteMode=None AutoPostBack=false DropDownStyle=DropDown

  • 0

I was wondering why the following code:

<asp:ComboBox ID="DropDown1" runat="server" Width="30px" AutoCompleteMode=None 
AutoPostBack=false DropDownStyle=DropDown EnableViewState="True">
</asp:ComboBox>&nbsp;<asp:Literal ID="myid1" runat="server" Text="Days"></asp:Literal>

produces the combobox with label “Days” to the right off of it in IE9 and FireFox but when I run it using Chrome the “Days” label appears below the combo box?

How do I make it to be drawn to the right off the combo box like the rest of the browsers?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T19:44:59+00:00Added an answer on May 25, 2026 at 7:44 pm

    First up the Combo Box is not part of the “Standard” asp.net controls. I’m assuming you are using the asp.net AJAX Toolkit for this. As the Combo box is a compound control it does not render “Clean HTML” eg:

    <select id="DropDown1"></select> Days
    

    Instead it renders:

    <div id="DropDown1" style="display:inline-block;">    
        <table id="DropDown1_Table" 
               class="ajax__combobox_inputcontainer" 
               cellspacing="0" 
               cellpadding="0" 
               border="0" 
               style="display:inline-block;border-width:0px;border-style:None;border-collapse:collapse;position:relative;top:5px;">    
            <tr>    
                 <td class="ajax__combobox_textboxcontainer">
                    <input name="DropDown1$TextBox" 
                           type="text" 
                           id="DropDown1_TextBox" 
                           autocomplete="off" 
                           style="width:30px;" />
                 </td>
                 <td class="ajax__combobox_buttoncontainer">
                     <button id="DropDown1_Button" 
                             type="button"
                             style="visibility:hidden;"></button>
                 </td>    
            </tr>    
         </table>
         <input type="hidden" 
                name="DropDown1$HiddenField" 
                id="DropDown1_HiddenField" 
                value="-1" />    
    </div>&nbsp;Days
    

    Which for me in chrome 14 displays with the Days in the same line as the drop down.

    The thing to note is the div wrapping up the combo box control. Either the version on chrome you are using is ignoring the display:inline-block; style or you have some CSS somewhere that is somehow overriding this.

    Maybe look at using the standard controls and use jQuery and page methods to roll your own combo box, or better still look at FlexBox.

    Which version of chrome on which OS is causing the issue?

    If you don’t need AJAX functionality just use the standard ASP:Dropdown control.

    UPDATE:

    Using Microsoft’s Combo Box Sample page reproduces your issue in Chrome. Looking at the rendered code it is different in IE and Chrome. This leads me to believe I have a different version of the tool kit to yourself and Microsoft (probably older!)

    IE uses display:inline-block while chrome renders display:inline which would be causing the display anomaly.

    To work around the issue with the version of the toolkit you are using, I would try the following:

    <div style="display:inline-block">    
       <asp:ComboBox ID="DropDown1" runat="server" Width="30px" AutoCompleteMode=None AutoPostBack=false DropDownStyle=DropDown EnableViewState="True">
       </asp:ComboBox>
    </div>
    &nbsp;<asp:Literal ID="myid1" runat="server" Text="Days"></asp:Literal>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Take following example of code: (ASP.NET WebForms) <asp:Content ContentPlaceHolderID=Contents runat=server> <div class=blogpost-list> <asp:Repeater ID=blogList
Consider the following code: <label>Search:</label><asp:TextBox runat=server ID=search ClientIDMode=Static OnKeyUp=$('#searchButton').click(); /><asp:Button runat=server ID=searchButton ClientIDMode=Static />
I'm wondering why the following code doesn't work: String test = new String(new byte[]
In the following code $j is the jquery object. I was wondering why I
I was wondering how can I allow NULL values in the following code below
I'm slowly understanding closures more and more, and the following code works. I'm wondering
I'm wondering if using the following Javascript code is reliable: if (!document.cookie) { alert('Cookies
I'm wondering why this code section prints out the following: print request.user.has_perm('bug_tracking.is_developer'): + str(request.user.has_perm('bug_tracking.is_developer'))
I was wondering whether you think the following code usually indicates a bad design
I am wondering if the following code is an old approach for working with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.