P
Pedro Airo
I had done the following code:
private void Page_Load(object sender, System.EventArgs e)
{
if (!Page.IsPostBack){
DropDownList1.Items.Add("Item1");
DropDownList1.Items.Add("Item2");
}
}
and
private void DropDownList1_SelectedIndexChanged(object sender,
System.EventArgs e)
{
int idx = DropDownList1.Items.Count;
DropDownList1.Items.Add("Item: " + idx);
}
In a pc with a win xp the aspx works just fine, but when i put this aspx in
a win 2003 iis , the progra in the first time works fine, when i click in a
dropdownlist item, the dropdownlist will be empty.
Anyone can help me?
private void Page_Load(object sender, System.EventArgs e)
{
if (!Page.IsPostBack){
DropDownList1.Items.Add("Item1");
DropDownList1.Items.Add("Item2");
}
}
and
private void DropDownList1_SelectedIndexChanged(object sender,
System.EventArgs e)
{
int idx = DropDownList1.Items.Count;
DropDownList1.Items.Add("Item: " + idx);
}
In a pc with a win xp the aspx works just fine, but when i put this aspx in
a win 2003 iis , the progra in the first time works fine, when i click in a
dropdownlist item, the dropdownlist will be empty.
Anyone can help me?