R
Rick Mavrovik
Hi,
I am trying to generate a number of Web User Controls (WUC) based on user
input.
This WUC has got 2 drop down controls in it. The WUC works fine when created
in the usual manner but when I try to create it dynamically a null reference
exception is thrown when trying to refering any of the drop down.
UCUserToDeviceInBulk ucTemp = new UCUserToDeviceInBulk();
ucTemp.Visible = true;
ucTemp.LoadData(Convert.ToInt32(ddlClient.SelectedItem.Value));
Inside the LoadDate when I try to use the any of the drop down list.. a null
reference exception occurs
public void LoadData(int clientID){
ddlUser.CssClass = "GAMADdlNormal";
}
Does anyone have any clue why this is happening.
Thanks
-Rick
I am trying to generate a number of Web User Controls (WUC) based on user
input.
This WUC has got 2 drop down controls in it. The WUC works fine when created
in the usual manner but when I try to create it dynamically a null reference
exception is thrown when trying to refering any of the drop down.
UCUserToDeviceInBulk ucTemp = new UCUserToDeviceInBulk();
ucTemp.Visible = true;
ucTemp.LoadData(Convert.ToInt32(ddlClient.SelectedItem.Value));
Inside the LoadDate when I try to use the any of the drop down list.. a null
reference exception occurs
public void LoadData(int clientID){
ddlUser.CssClass = "GAMADdlNormal";
}
Does anyone have any clue why this is happening.
Thanks
-Rick