如何把双引号写时字串变量中?
想在Gridview的某一列用链接表示:
if (e.Row.RowType == DataControlRowType.DataRow) //判定当前的行是否属于datarow类型的行
{
for (int i = 0; i < e.Row.Cells.Count; i++)
{
if (i == 7)
{
e.Row.Cells[17].Text = "<a href='#' " + e.Row.Cells[17].Text + "></a>"; //我用的单引号好象不行
}
}
}