---
title: "asp.net dropdownlist"  
description: "asp.net dropdownlist"  
author: "Anonymous User"  
published: 2014-08-22  
updated: 2014-08-22  
canonical: https://www.mindstick.com/forum/2077/asp-dot-net-dropdownlist  
category: "asp.net"  
tags: ["asp.net"]  
reading_time: 1 minute  

---

# asp.net dropdownlist

I have two dropdown [lists](https://www.mindstick.com/articles/126273/books-commonly-found-on-college-reading-lists) state,city. My [requirement](https://yourviews.mindstick.com/view/85169/becoming-an-influencer-requirement-of-skills-and-knowledge) is that i need to [populate](https://www.mindstick.com/blog/60/populate-records-in-second-listbox-according-to-the-selection-in-first-list-box) city [dropdown list](https://www.mindstick.com/forum/760/dropdown-list-open-hide-behind-another-dropdown-list-on-ie-7) on the basis of state dropdown list. So i have set [autopostback](https://www.mindstick.com/interview/2074/what-is-autopostback)=[true](https://yourviews.mindstick.com/view/81326/boycott-chinese-products-dream-will-come-true) for state dropdown list and ontextchanged [event](https://www.mindstick.com/articles/167719/marquee-hire-benefits-of-event-lighting-hire-london) of state dropdown im calling my [function](https://www.mindstick.com/articles/13001/multi-statement-table-valued-user-defined-function-in-sql-server) which populates city dropdown.. Is it the correct way or is there any other way to do this. Thanks

## Replies

### Reply by Sumit Kesarwani

Hi Ashish, \

Use SelectedIndexChanged event of the first [dropdown](https://www.mindstick.com/articles/263/ajax-toolkit-dropdownextender-in-asp-dot-net) to check for selected value & databind your 2nd dropdownlist.


---

Original Source: https://www.mindstick.com/forum/2077/asp-dot-net-dropdownlist

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
