C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » ASP.NET »

error when click on save button


Posted Date: 30 Nov 2008      Posted By: Ravi Shinde      Member Level: Silver     Points: 1   Responses: 5



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





Responses

Author: Sandeep Jain    30 Nov 2008Member Level: BronzeRating: 2 out of 52 out of 5     Points: 0

hey, put the code..


Author: Kavitha    30 Nov 2008Member Level: GoldRating: 2 out of 52 out of 5     Points: 0

check out parameter value


Author: saravanan    30 Nov 2008Member Level: SilverRating: 2 out of 52 out of 5     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 2008Member Level: SilverRating: 2 out of 52 out of 5     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 2008Member Level: GoldRating: 2 out of 52 out of 5     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



Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.


Next : how to working in return url concept in asp.net
Previous : .pdb files are not created
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use