Click to See Complete Forum and Search --> : button postback does not work


v_ganeshraju
September 7th, 2004, 09:23 AM
Hi,

I have a dropdownlist and a button on my aspx page. If i have more than 90 items in the dropdownlist my button does not do postback. If there are less than 80 items in the dropdownlist, same button does postback now. I couldnt understand what is going on, can someone please help.

I tried to set the 'enableviewstate' property to false, then the button can do the postback, but the dropdownlist can not remember the selection.

Thanks so much!!!
Ganesh
ganeshraju@gmail.com

v_ganeshraju
September 7th, 2004, 03:30 PM
I was trying for some more time and found out.

This works. The Button could postback.
for (int i=0; i<100; i++)
{
this.DropDownList1.Items.Add(new ListItem("Hello"));
}

But not this. Button could not postback.
for (int i=0; i<200; i++)
{
this.DropDownList1.Items.Add(new ListItem("Hello How r u"));
}

Notice that i have increased the loop from 100 to 200. Can this be due to Cache limit?

Thanks,
Ganesh

MRutledge
September 8th, 2004, 06:15 PM
I have not heard of a dropdown having a limit in size. Try disabling view state for that page and see if that makes a difference.