---
title: "DropDownList not working after using .SelectedValue"  
description: "DropDownList not working after using .SelectedValue"  
author: "Anonymous User"  
published: 2014-11-17  
updated: 2014-11-17  
canonical: https://www.mindstick.com/forum/12621/dropdownlist-not-working-after-using-selectedvalue  
category: "asp.net"  
tags: ["asp.net"]  
reading_time: 1 minute  

---

# DropDownList not working after using .SelectedValue

I'm new with [asp.net](https://www.mindstick.com/articles/934/default-folders-available-inside-the-asp-dot-net-application-folder) and i think this is really easy [question](https://www.mindstick.com/blog/23175/how-to-solve-neet-question-paper-in-less-time), but i can't find the answerI have a [DropDownList](https://www.mindstick.com/articles/324837/how-to-bind-dropdownlist-in-mvc-core-from-database-using-entity-framework) on my [page](https://www.mindstick.com/articles/13031/why-to-make-a-wikipedia-page), one of the ways to go to that page is follow the [link](https://www.mindstick.com/articles/23633/link-builder) on the other page (page B). By this link i deliver some [parameters](https://www.mindstick.com/articles/87/passing-parameters-in-c-sharp), so i use them in the Page_load of page A:\
\

```
    protected void Page_Load(object sender, EventArgs e)    {        string strStatus = Request.QueryString["status"];        DListStatus.SelectedValue = strStatus;    }
```

I thought that .ClearSelection() will help

i really [wonder](https://yourviews.mindstick.com/story/2441/wheatgrass-juice-wonder-for-your-health) what to do and will really appreciate your help

## Replies

### Reply by Sumit Kesarwani

Hi Ashish, \

Check if is it is a post back

```
if (!Page.IsPostBack){    string strStatus =
Request.QueryString["status"];   
DListStatus.SelectedValue = strStatus;}
```


---

Original Source: https://www.mindstick.com/forum/12621/dropdownlist-not-working-after-using-selectedvalue

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
