残阳神仙道,吴亚军背景,夏洛特烦恼泥巴影音
protected void gridview1_rowdatabound(object sender, gridviewroweventargs e)
{
if (e.row.rowtype == datacontrolrowtype.datarow)
{
e.row.attributes.add("onmouseover", "this.name=this.classname;this.classname='selrow';");
e.row.attributes.add("onmouseout", "this.classname=this.name;");
string bwflag = databinder.eval(e.row.dataitem, "bwflag").tostring();
if(bwflag == "b")
{
e.row.cells[3].text = "黑名单";
}
else
{
e.row.cells[3].text = "白名单";
}
//modelblackwhitelist model = row.dataitem as modelblackwhitelist;
linkbutton lkimage = e.row.findcontrol("lkimage") as linkbutton;
//image imgcar = e.row.findcontrol("imgcar") as image;
object carpicpath = databinder.eval(e.row.dataitem, "carpicpath");
if (carpicpath != null)
{
lkimage.postbackurl = "showimage.aspx?carpicpath=" + system.web.httputility.htmlencode(carpicpath.tostring());
}
else
{
lkimage.postbackurl = "#";
}
}
}
如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复
Blazor server side 自家的一些开源的, 实用型项目的进度之 CEF客户端
.NET IoC模式依赖反转(DIP)、控制反转(Ioc)、依赖注入(DI)
vue+.netcore可支持业务代码扩展的开发框架 VOL.Vue 2.0版本发布
网友评论