I have a asp.net page which contains some textboxes
after entering data when i click on save button
the code executes perfectly but after it reches End Sub of the
click method it gives the following error.
Description: An unhandled exception occurred during the execution of the current web request.
Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentOutOfRangeException:
Parameter name: index
Source Error:
An unhandled exception was generated during the execution of the current web request.
Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[ArgumentOutOfRangeException:
Parameter name: index]
DevExpress.Web.ASPxClasses.StateManagedCollectionInternal.System.Collections.IList.Insert(Int32 index, Object value) +161
DevExpress.Web.ASPxClasses.Collection.Insert(Int32 index, CollectionItem item) +44
DevExpress.Web.ASPxEditors.ListEditItemCollection.Insert(Int32 index, ListEditItem item) +33
DevExpress.Web.ASPxEditors.ListBoxProperties.SynchronizeItemsWithState(String stateString, Boolean isInsertingSyncroType) +198
DevExpress.Web.ASPxEditors.ASPxComboBox.SynchronizeItems(NameValueCollection postCollection) +187
DevExpress.Web.ASPxEditors.ASPxComboBox.LoadPostData(NameValueCollection postCollection) +48
DevExpress.Web.ASPxClasses.ASPxWebControl.LoadPostDataInternal(NameValueCollection postCollection, Boolean raisePostDataEvent) +218
DevExpress.Web.ASPxClasses.ASPxWebControl.System.Web.UI.IPostBackDataHandler.LoadPostData(String postDataKey, NameValueCollection postCollection) +35
System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) +479
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint
what is problem
plz help!!!
thanks in advance
|
| Author: Sandeep Jain 30 Nov 2008 | Member Level: Bronze | Rating:  Points: 0 |
hey, put the code..
|
| Author: Kavitha 30 Nov 2008 | Member Level: Gold | Rating:  Points: 0 |
check out parameter value
|
| Author: saravanan 30 Nov 2008 | Member Level: Silver | Rating:  Points: 4 |
Hi, the issue here is i see you are doing some save operation here and there is some format mismatch on the values you passed to the database, if you pass value to the date field, check if its in proper format as it need.
hope this will solve your issue.
|
| Author: Radha Rani 01 Dec 2008 | Member Level: Silver | Rating:  Points: 4 |
HI,
I hope somewhere in the save_click method you are using the indexes which has reached its maximun size. Just check out the code in debug mode watching the index values. I hope you will find it.Or else plz put the code, we'll try to resolve
|
| Author: puneet malviya 01 Dec 2008 | Member Level: Gold | Rating:  Points: 3 |
Hi you r enter large value according your parameter that's mean your parameter size is less than inseting value increse the size of parameter your problem would be solve
|