Rank: Member
Joined: 10/28/2003(UTC) Posts: 168
|
What is the purpose of this code ?
Rates.RemoveAt(1) Line 53: If Rates.Count > 2 Then Line 54: Rates.RemoveAt(3) Line 55: End If
Its gives error:
BVModules\Controls\Shipping.ascx.vb:54
[ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index] System.Collections.CollectionBase.RemoveAt(Int32 index) +2436629 BVModules_Controls_Shipping.LoadShippingMethodsForOrder(Order o, String Zip) in D:\Inetpub\wwwroot\domains\officialticketcenter\BVModules\Controls\Shipping.ascx.vb:54 BVModules_Checkouts_One_Page_Checkout_Checkout.LoadBasket() in D:\Inetpub\wwwroot\domains\officialticketcenter\BVModules\Checkouts\One Page Checkout\Checkout.aspx.vb:69 BVModules_Checkouts_One_Page_Checkout_Checkout.PageLoad(Object sender, EventArgs e) in D:\Inetpub\wwwroot\domains\officialticketcenter\BVModules\Checkouts\One Page Checkout\Checkout.aspx.vb:28 System.EventHandler.Invoke(Object sender, EventArgs e) +0 System.Web.UI.Control.OnLoad(EventArgs e) +99 System.Web.UI.Control.LoadRecursive() +47 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436 |
|
|
|
|
Rank: Member
Joined: 11/5/2003(UTC) Posts: 2,136
Was thanked: 1 time(s) in 1 post(s)
|
I can't find that code in my copy of Shipping.ascx.vb. I think someone has customized the code (and introduced a bug because they forgot that arrays are zero based). |
|
|
|
|
Rank: Member
Joined: 10/28/2003(UTC) Posts: 168
|
thanks Andy.
I was able to solve the problem. |
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.