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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T01:16:49+00:00 2026-05-13T01:16:49+00:00

I have an error panel that is subbed in to a page if an

  • 0

I have an error panel that is subbed in to a page if an error goes wrong to gracefully handle and display errors. Currently, I am just appending the error messages to a string and pushing that to a label. If you have multiple errors, this gets messy. Therefore, I’d like to push each error to a list item in a bulleted, unordered list.

How can I dynamically generate, from a vb codebehind file, new list items inside of an undordered list element?

  • 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-13T01:16:49+00:00Added an answer on May 13, 2026 at 1:16 am

    Why not use a BulletedList control? This control will render an unordered list to the client.

    <asp:BulletedList ID="BulletedList" runat="Server" BulletStyle="NotSet">
    </asp:BulletedList>
    

    You can then add list items programmatically from code behind like this.

    BulletedList.Items.Add("Item1");
    

    You can also accomplish this by adding runat='server' to reference the UL tag server side.

    <ul id="uList" runat="server">
    </ul>
    

    Then in the code behind use the InnerHtml property to programmatically add LI tags to the contents within the opening and closing UL tags.

    uList.InnerHtml += "<li>Item1</li>";
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello i have error when i am forwarding page without parameter. that is happen
I have an administration panel that has a page allowing the administrators to delete
I have a page that has a side panel and a center div. When
I have a PartialView called TopPanel. This Panel is responsible for displaying error messages
I experience strange problem. We have error handling in global.asax that would redirect user
I have an error message box that gets displayed somewhat frequently (due to the
I have created a editor grid panel in that i have edited the data
I am creating a very basic asp.net web page to display an error message.
I have a panel layout which has some text fields that require validation. What
I have an Ext Js panel that I am adding to my main TabPanel.

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.