Author: rajmahen | Posted on: 1/8/2010 1:30:30 AM | Views : 526

Hi Guys Im Coming here once again with a hope to find a solution to my problem...
i got a drop drown which im adding dynamically...Im able to add datasource(ItemList) and a preselected value to it and properly displaying it to the UI.
The problem is whenever any post backs happens Im not able to retain the values in the Drop down..
Even Im Taking the reference in the View state.



Here the code.


protected override void LoadViewState(object savedState)
        {
base.LoadViewState(savedState);
            if (ViewState["ddlAxnCd1"] != null)
            {
                if (ViewState["ddlAxnCd1"].ToString().Trim().Contains("ddlMitigtAxnCd1"))
  ...

Go to the complete details ...