Posted on: 1/29/2014 7:21:44 PM | Views : 748

I'm new to ASP.NET, so this one should be simple enough for you. I've tried to search for solutions without sucess.
So, I've got 2 dropdownlists in a web form. The 2nd is "bound" to the 1st one via its SelectedValue property. Everything works just the way I want. The problem is when I want to set the 2nd ddl SelectedValue Property with a QueryString value. It just doesn't work. Setting the 1st ddl SelectedValue property using a QueryString value works fine though.
I've built a test page so that you got the whole picture. The 1st ddl has a list of Users and the 2nd ddl has a list of User's vehicles. The 2nd ddl updates when the 1st ddl changes. Pretty simple, I guess.
I want to be able to set the 2nd ddl SelectedValue with a QueryString value. I guess that the 2nd ddl is not filled when I set the SelectedValue, but I'm not sure.
The page's markup is as follows:
<%@ Page Language="C#" AutoEventWir ...

Go to the complete details ...