This is a migrated thread and some comments may be shown as answers.

"Firewall" Issue when a Large Number of RadListBox Items are Selected

1 Answer 47 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
J
Top achievements
Rank 1
J asked on 13 Jul 2012, 07:17 PM

I am unable to successfully submit an ASP.NET web form when a large number of RadListBox items are selected (79 in this case).  However, if I select a significantly smaller number of items, I am able to successfully submit the form.  After consulting with a firewall SME, I was able to verify that the following parameter was causing the "network security engine" to reject the request:  "radListBox_ID_ClientState={"logEntries":[{"Type":1,"Index":"1","Data":{"value":"6","selected":false,"text":"TextValue_1"}},{"Type":1,"Index":"2","Data":{"value":"15","text":"TextValue_2"}},...,{"Type":1,"Index":"79","Data":{"value":"101","text":"TextValue_79"}},"}}],"selectedIndices":[0],"checkedIndices":[],"scrollPosition":1629}. 

Obviously, the payload for this parameter is significantly large.   Consequently, the network "network security engine" exceeded its set number of maximum recursions to verity the content of this parameter was not malicious.  Therefore, the request was rejected when a user selected a large number of items via RadListBox control, causing a page error.  Is there a known work around for this issue? Is there a way to reduce the payload when submitting a form with a large number of RadListBox items are selected (e.g., > 100)?  Thanks in advance!

1 Answer, 1 is accepted

Sort by
0
Bozhidar
Telerik team
answered on 16 Jul 2012, 08:01 AM
Hi,

Looking at the ClientState value I see that the problem is not the selected items, but the LoadOnDemand mode you are using. These values: {"Type":1,"Index":"1","Data":{"value":"6","selected":false,"text":"TextValue_1"}} represent a node added through WebService and are needed in order to notify the server of the new node.

Unfortunately there isn't a way to decrease the size of the client state in this scenario. The only solution to this issue is to use another LoadOnDemand mode ( see the following demo)
http://demos.telerik.com/aspnet-ajax/listbox/examples/functionality/loadondemand/defaultcs.aspx 

Hope this was helpful.
 
Kind regards,
Bozhidar
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
General Discussions
Asked by
J
Top achievements
Rank 1
Answers by
Bozhidar
Telerik team
Share this question
or