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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T05:09:45+00:00 2026-05-29T05:09:45+00:00

there are some item in my database,on page load, my dropdownlist will load all

  • 0

there are some item in my database,on page load, my dropdownlist will load all the item from db, what i want to achieve is whenever user selected any item from dropdownlist, there are some output will be display

item inside my db

a

b

c

once i set dropdownlist auto post back =true (it can achieve one of my requirement, once there are item selected, some output display, but there are problems for data load)

output in dropdownlist

a

b

c

a

b

c

a

b

c

it will repeated for 3 time

once i set autopostback =false (data load no problem,but cant display my output)

below is the code for my dropdownlist

while (dtrLoad.Read())
        {

           ddlCourse.Items.Add(dtrLoad["subject"].ToString());

           if(ddlCourse.SelectedItem.Text=="Please Select"){
               p1.InnerHtml = "Welcome";
           }else if(ddlCourse.SelectedItem.Text==dtrLoad["subject"].ToString()){
               p1.InnerHtml=dtrLoad["subjectIntroduction"].ToString();
           }else{
           }

        }
  • 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-29T05:09:46+00:00Added an answer on May 29, 2026 at 5:09 am

    It’s required to trigger page update, to reflect any changes on the page.
    It is possible with button click or with dropdown itself.

    Try to set “AutoPostBack” property of the dropdown to true.

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

Sidebar

Related Questions

Is there some way to block access from a referrer using a .htaccess file
I have a drop box which is populated by information from a database. Some
I am creating a JSF application. I have some items (e.g. products) from database
What I want to do is retrieve all emails from MS SQL Customer table
There are some links in my database that do not have a trailing slash,
I want to send some unicode strings (for example ش) to my SQL DataBase
I want to show some news posts on the front page of a website.
I'm having some trouble using constraints correctly. I have three tables, 'item', 'store' and
Is there some means of querying the system tables to establish which tables are
Is there some way I can use URLs like: http://www.blog.com/team-spirit/ instead of http://www.blog.com/?p=122 in

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.