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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T22:13:29+00:00 2026-05-10T22:13:29+00:00

I m using a dropdown to display Location field of a table. I want

  • 0

I m using a dropdown to display ‘Location’ field of a table. I want to set first item of dropdowm as ‘-Select Location-‘. I can’t set tables first record as ‘Select’ because table is stroed in xml format. And table file is generated dynamicaly. I am currentaly using as

    ddlLocationName.Dispose();     ddlLocationName.AppendDataBoundItems = true;     ddlLocationName.Items.Add('Select Location');             ddlLocationName.DataSource = _section.GetLocations();     ddlLocationName.DataBind();     ddlLocationName.AppendDataBoundItems = false; 

but data is binded repeatedly. What will be the solution for this problem? Thaks in advance.

  • 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. 2026-05-10T22:13:29+00:00Added an answer on May 10, 2026 at 10:13 pm

    After you have databound, then call ddlLocationName.Items.Insert(0, ‘Select Location’);

    Example:

    ddlLocationName.Items.Clear(); ddlLocationName.DataSource = _section.GetLocations(); ddlLocationName.DataBind(); ddlLocationName.Items.Insert(0, 'Select Location'); // Adds the item in the first position 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using the following HTML/JS code to display a 2nd dropdown menu below the
Hi i am using dropdown for display the timezone.The timezone values are come from
When the Form is submitted, I can retrieve the DropDown text using $_POST['....']. But
I am using dropdown in ASP.net to display image along with value <asp:DropDownList ID=ddBanner
I am trying to create a dynamic set of dropdown boxes, using jQuery/AJAX and
I am filling DropDown dynamically using AJAX. The DropDown code looks like this: <select
I'm currently using the following to display an input field when I change a
I recreated a Select box and its dropdown function using this: $(.selectBox).click(function(e) { if
I am using a dropdown plugin called dropkick , which replaces select menus with
Step 1: I'm using a dropdown to display company locations. The list comes from

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.