Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Weird problem with ListBox databinding
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00821270
Message ID:
00821368
Vues:
22
>
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform