利用GridView显示主细表并添加删除、打开、关闭功能问题 在GridView中为一个按钮加一个事件,如何响应这个事件?谢谢 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { e.Row.Cells[1].Attributes.Add("class", "text"); if (GridView1.PageIndex == 0) { e.Row.Cells[6].Attributes.Add("onclick", "window.showModalDialog('DetailContentNews.aspx?id=" + GridView1.DataKeys[e.Row.DataItemIndex].Value.ToString() + "','查看详情','dialogWidth:500px;dialogHeight:500px;center:yes;help:no;resizable:no;status:no')"); } else { e.Row.Cells[6].Attributes.Add("onclick", "window.showModalDialog('DetailContentNews.aspx?id=" + GridView1.DataKeys[e.Row.DataItemIndex - 100 * GridView1.PageIndex].Value.ToString() + "','查看详情','dialogWidth:500px;dialogHeight:500px;center:yes;help:no;resizable:no;status:no')"); } } }上面是响应按钮“查看详细"弹出窗口页面DetailContentNews.aspx。这只是一种方式,给gridview的cell绑定Attributes 请问如何访问用户控件中某控件的事件 jq问题 谁知道啊 说说呗 给分 windws+asp.net+mssql 和 linux+php+mysql 对比.windows和mssql都要付费的,而linux和mysql是免费的 关于使用HIBERNATE和GRIDVIEW的数据没有更新的问题,望请教! 大家帮我看看为什么GRIDVIEW显示不出来 ado.net 增加一列 新人求教:学ASP.net要有哪些基础 listview编辑时显示问题 在線等待!急急急! config.web 关于post请求问题!急,请高手指点! 请问怎样利用asp.net清空IE的历史记录缓存
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.Cells[1].Attributes.Add("class", "text");
if (GridView1.PageIndex == 0)
{
e.Row.Cells[6].Attributes.Add("onclick", "window.showModalDialog('DetailContentNews.aspx?id=" + GridView1.DataKeys[e.Row.DataItemIndex].Value.ToString() + "','查看详情','dialogWidth:500px;dialogHeight:500px;center:yes;help:no;resizable:no;status:no')");
}
else { e.Row.Cells[6].Attributes.Add("onclick", "window.showModalDialog('DetailContentNews.aspx?id=" + GridView1.DataKeys[e.Row.DataItemIndex - 100 * GridView1.PageIndex].Value.ToString() + "','查看详情','dialogWidth:500px;dialogHeight:500px;center:yes;help:no;resizable:no;status:no')"); }
}
}上面是响应按钮“查看详细"弹出窗口页面DetailContentNews.aspx。
这只是一种方式,给gridview的cell绑定Attributes