Click here to Skip to main content
15,879,490 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
I have 1350 City to fill in the table as check box list.
and I made it..
Now When press next button with selecting few city among 1350.
it working as per programmed.

but, if i select all of them to make next step with the all city then it's fire error.

" Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500 "

and not able to do next.
i searched all over for same.
but couldn't find right one.
i found same change regarding to Edit in we.config, but they also not worked for me.
Posted

Suggestion

First of all, I would suggest you to reconsider your design.
Populating 1350 CheckBoxes on a page is not a wise approach.

Instead you can have a AutoComplete TextBox and according to the search text, you will just populate the Cities matching that search text.

Another approach would be to narrow down the Cities as per the selected Country and State and District. You will have lesser number of Cities as such.

With the current approach, I would say debug the code and see where exactly in code it is failing to work as expected.
 
Share this answer
 
Comments
7045Jeegnesh 27-Nov-13 7:55am    
thanks for suggestion. yes, it is as per country,State and district wise. but higher authority user need to check for all cities of india... business matter
But you can still do one thing. Just have DropDowns for Country and State.
On selection of those two, you can populate the Cities.

That would be the approach.
7045Jeegnesh 28-Nov-13 0:17am    
yes, but as i said user want to select "all state" and "all cities"..
and by the way. it's running site since 12 year, so can not modify like one.
Then debug the code and try to find out where exactly it is failing to work.
it's happening because of "MaxHttpCollectionKeys" is default set to 1000 and i increased
the size of that attribute just by adding below code in web.config

HTML
<add key="aspnet:MaxHttpCollectionKeys" value="10000" />


Thank u to all of you, and thanks to Tadit Dash.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900