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
火狐已经编译出来可点击 就是不会跳页面,求各位大侠帮忙凑凑。