title: cannot convert string to char
body: <p>I got some help on here last night about getting an the index of a collection.  Here is the code I'm using.</p>
  
  <pre><code>            System.Text.StringBuilder sb = new System.Text.StringBuilder();
  
              for (int i = 1; i &lt; _prod.ActiveProductItemCollection.Count; i++)
              {
  
                  sb.Append("&lt;script type='text/javascript'&gt;");
                  sb.Append("mboxCreate(\"product_productpage_rec{0}\")", i);
                  sb.Append("\"entity.id=" + _prodID + "\",");
                  sb.Append("\"entity.categoryId=" + _categoryID + "\",");
                  sb.Append("\"entity.name=" + _prod.ActiveProductItemCollection[i].Title + "\",");
                  sb.Append("\"entity.pageURL=" + Request.Url.ToString() + "\",");
                  //The following value has been taken from the productImageControl code behind.
                  //Might have to refactor in future as a property of the image control.
                  string filename = AppSettingsManager.Current.ProductImagePathLarge + _prod.ActiveProductItemCollection[i].Sku
                      + AppSettingsManager.Current.ProductImageExtension;
                  sb.Append("\"entity.thumbnailURL=" + filename + "\",");
                  sb.Append("\"entity.inventory=" + _prod.ActiveProductItemCollection.Count + "\",");
                  sb.Append("\"entity.value=" + _prod.ActiveProductItemCollection[i].ActualPrice + "\",");
                  sb.Append("\"entity.ProductItemID=" + _prod.ActiveProductItemCollection[i].Sku + "\",");
                  sb.Append("\"entity.addToCartImg=~/Images/Buttons/btn_AddToCartFlat.gif\");&lt;");
                  //The last line has to be /script. &lt; inserted on prev line. do not change it or bad things will happen.            
                  sb.Append("/script&gt;");
              }
              this.LiteralMBoxScript.Text = sb.ToString();
  </code></pre>
  
  <p>What I want to do is get the index of the item in the collection after productpage_rec.</p>
  
  <p>So for instance, the first product would generate like</p>
  
  <p>
  mboxCreate("product_productpage_rec1"</p>
  
  <p>and so on and so forth for each product in the collection.  When I try to build I get the follwong error:</p>
  
  <p>"cannot convert from string to char"</p>
  
  <p>Its tripping up on the product_productpage_rec{0}</p>
  
  <p>What am I missing?</p>
  
  <p>Thanks in advance.</p>