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 6567687
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T14:22:01+00:00 2026-05-25T14:22:01+00:00

i have a list: <asp:ListBox ID=lstProblems runat=server SelectionMode=Multiple></asp:ListBox> and i am populating it this

  • 0

i have a list:

<asp:ListBox ID="lstProblems" runat="server" SelectionMode="Multiple"></asp:ListBox>

and i am populating it this way:

$(function() {
        $.get('../file.txt', function(data) {
            var output = data.split('\n'),
            tmp = '';
            for (i = 0; i < output.length; i++) {
                tmp += '<option value=' + output[i] + '>' + output[i] + '</option>';
            }
            $('#lstProblems').html(tmp);

        });
    });

i would like to know how i can convert this to be a regular HTML list? i need this because of this question: increase height of listbox in IE7

update
i changed the html to:

<select size="4" name="lstProblems" multiple="multiple" id="lstProblems" CssClass="list-problems">

and added this to css:

.list-problems {
    height:600px !important;
    display:inline-block;
}

neither IE nor chrome noticed a difference

could there be something overriding this?

here’s everything that im including:

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js" type="text/javascript"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.js" type="text/javascript"></script>


<link href="../niceforms/niceforms-default.css" rel="stylesheet" type="text/css" />
<script src="../niceforms/niceforms.js" type="text/javascript"></script>

<link href="../jquery-ui-1.8.16.custom.css" rel="stylesheet" type="text/css" />

here’s the source from IE: http://pastebin.com/7vsF11Yq

  • 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-25T14:22:02+00:00Added an answer on May 25, 2026 at 2:22 pm

    Just add a class to the ASP.NET control and then use CSS as per the other question.
    The ASP.NET control will be rendered as a standard HTML list with a css class specified.

    So change your markup to

    <asp:ListBox ID="lstProblems" runat="server" SelectionMode="Multiple" CssClass="list-problems"></asp:ListBox>
    

    And then use the following CSS

    .list-problems {
        height:200px !important; 
        display:inline-block;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a list box in my aspx page: <asp:ListBox ID=lstTreatmentProvider runat=server SelectionMode=Multiple Width=175px
I have a list box: <asp:ListBox ID="lstAppointment" runat="server"></asp:ListBox> I want to make it multicolumn.
I have a list box control: <asp:ListBox runat=server id=lbox autoPostBack=true /> The code behind
<asp:ObjectDataSource ID=sourceGroups runat=server TypeName=Kurs4.Code.GroupDB SelectMethod=GetGroups> </asp:ObjectDataSource> <asp:ListBox ID=lstGroups runat=server DataSourceID=sourceGroups DataTextField=GroupName></asp:ListBox> <asp:Button ID=btnDeleteGroup runat=server
I have an ASP.NET listbox, lstActivities . To edit an item in the list,
I have a asp:ListBox wrapped inside an asp:UpdatePanel. The list box contains all the
My ListBox on aspx page is as follows:- <asp:ListBox ID=ddlItems runat=server Style=padding: 2px; width:
I have a checkedlistbox in asp.net web form page as : <asp:CheckBoxList ID=TagListCheckBox runat=server
Within an asp.net application I have a list of categories objects, within this list
I have two list controls in my asp.net page and am populating the second

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.