Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Posted

Button could not postback

 

Hi Thanks so much for the reply!

I still have the problem. If i increase the loop, it doesnt work.

 

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

 

 

Verify the data in the list for special characters' date=' there may be one that is hindering the postback.[/quote']

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...