.NET后台拼接HTML代码前台编译出 可是没效果求各位帮忙,下班前要解决

 protected void dbGridView_RowDataBound(object sender, GridViewRowEventArgs e)
        {
            var row = e.Row;

            if (row.RowType == DataControlRowType.DataRow)
            {
                BorrowHeaderModel model = row.DataItem as BorrowHeaderModel;
                if (model.IsSendGoods)
                {
                    row.Cells[14].Text = "<a herf='http://www.baidu.com'>归还</a>";
                    if (model.IsReturn)
                    {
                        row.Cells[14].Text = "签收";
                        if (model.IsGoodsReceipt)
                        {
                            row.Cells[14].Text = "查看";
                        }
                    }
                }
                else {
                    String a = "确认发货?";
                    row.Cells[14].Text = "<a to='detail'  class='btn btn-small' herf='/WebUI/Admin/AdminOA/Borrow/Edit.aspx?type=Sendid&ID=" + model .Id+ "' onclick='return confirm("+a+")' >发货</a>";
                }

如上代码,是后台我自己拼写的HTML

图片说明

火狐已经编译出来可点击 就是不会跳页面,求各位大侠帮忙凑凑。

图片说明

confirm提示内容要用引号括起,报错了

 row.Cells[14].Text = "<a to='detail'  class='btn btn-small' herf='/WebUI/Admin/AdminOA/Borrow/Edit.aspx?type=Sendid&ID=" + model .Id+ "' onclick=\"return confirm('"+a+"')\" >发货</a>";