I am working on MVC, I want to bind cascading dropdownlist, such like "country" and "state", since i have cascading dropdownlist i binds my first dropdownlist for "country" in my Index action and then on selection of "country" in first dropdownlist i want to bind my second dropdownlist for "state", but on action method "country" dropdown will be bid successfully but for state dropdownlist i does not specify any viewbag or viewdata, i have got an error "there is no viewdata for selectlistitem with state key",
so it is necessary to specify a viewbag for state dropdownlist, since i am binding my state dropdownlist using json data so i don't need any viewbag or viewdata.
Thanks