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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T12:13:15+00:00 2026-05-24T12:13:15+00:00

I have 40 asp.net dropdownlists in my webpage. When i bind the controls in

  • 0

I have 40 asp.net dropdownlists in my webpage. When i bind the controls in serverside using DataBind() it is taking 12 seconds, during which the page is blank. Without the databind, the page loads in 1 second.

So i decided to do the binding at client side. When i googled, i got this link.
But the problem i am facing is, when i use PopulateControl() in javascript, i will get only the SelectedIndex during the postback.

The asp.net dropdown has the properties like SelectedIndex, SelectedValue, SelectedText. These properties are used a lot in the code-behind and changing the logic based on selected index would be very tough for me.

Is there a way where i can bind the control with javascript and get all those properties during postback.

Thanks 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. Editorial Team
    Editorial Team
    2026-05-24T12:13:16+00:00Added an answer on May 24, 2026 at 12:13 pm

    As the items in the drop downs were not there on page load they will not be accessible in the normal ASP.net way. Use the request object to get the selected values:

    string selVal = request.Form["dropDownName"]; //C# code
    

    Be careful if you are using MasterPages or other naming containers as the name passed in the Request object may be mangled.

    You could also use a plain HTML select control here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some JavaScript to toggle a dropdownlists in a ASP.NET page, which gets
I have the following JavaScript to toggle a dropdownlists in a ASP.NET page, which
I'm building an asp.net cutom control inside which I have two dropdownlists: companyIdSelection and
I have ASP.NET web pages for which I want to build automated tests (using
I am using ASP.Net MVC. I have a partial view which has a form
I'm using ASP.NET to build a form which has 3 DropDownLists and one GridView.
I have asp.net page where I am using a gridView with custom paging and
The Scenario: I have an ASP.Net webpage which I intend to use for letting
I have a form in asp.net webpage which contains 2 drop down lists and
I have a asp.net 2.0 web site with numerous asp:DropDownList controls. The DropDownList control

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.