Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Weird problem with ListBox databinding
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00821270
Message ID:
00821368
Views:
21
>
>Specified argument was out of the range of valid values. Parameter name: value
>

Which line does this fail on?

>The weird thing is that I *always* reload the data the same way. So if the data was changed should have absolutely no effect on the databinding. The method does this:
>

Strange. It kind of sounds like you're attempting to retrieve the value you just deleted at some point. But, if you're refreshing the data before binding, that shouldn't happen, should it? Could something be firing in a different order than expected?

Could it be weird data?


>
>private void btnAdd_Click(object sender, System.EventArgs e)
>{
>	int SortOrder = 0;
>	try
>	{
>		Int32.Parse(this.txtSortOrder.Text);
>
This probably has nothing to do with your problem, but shouldn't you be assigning the result of the above line to SortOrder?

eg.
	{
		SortOrder = Int32.Parse(this.txtSortOrder.Text);
	}
-Paul

RCS Solutions, Inc.
Blog
Twitter
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform