forum

Home / DeveloperSection / Forums / DropDownList not working after using .SelectedValue

DropDownList not working after using .SelectedValue

Anonymous User 1576 17-Nov-2014
I'm new with asp.net and i think this is really easy question, but i can't find the answer
I have a DropDownList on my page, one of the ways to go to that page is follow the link on the other page (page B). By this link i deliver some parameters, 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 what to do and will really appreciate your help


Updated on 17-Nov-2014
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By