无法将带有[]的索引应用于“ISet <string>”类型的表达式

时间:2016-06-29 09:01:08

标签: c# arrays indexing type-conversion kentico

我收到错误'无法将带有[]的索引应用于“ISet”类型的表达式

此代码段

foreach (GridViewRow grv in customTableDataList.UniGrid.GridView.Rows)
{
  if (grv != null)
  {
    if (null != grv.FindControl(ItemCheckBoxID) && ((CheckBox)grv.FindControl(ItemCheckBoxID)).Checked)
    {
      //At this line I am getting error.
      itemIds += customTableDataList.UniGrid.ActionsID[rowCounter] + ", ";  
    }
    rowCounter++;
  }
}

任何人都可以提供更多细节来解决这个问题。

1 个答案:

答案 0 :(得分:1)

使用以下方式添加新内容:

<a href="intent://...;end">click</a>

并更改

var img = new Aspose.Pdf.Generator.Image(sec1);
tr.Paragraphs.Add(img);

//Assign a new instance of hyperlink to hyperlink property of segment
img.Hyperlink = new Hyperlink {
    LinkType = HyperlinkType.File,
    Url = "intent://m/#Intent;scheme=myapp://app.com/reference/" + input.Reference + ";package=some.package.com;end"
};