求助:如何获取footer中的控件? 在datagrid的footer中加了一个button控件,如何在后台代码中获取这个控件?我想在datagird的itemcreate事件中为这个button的一个attribute(js的confirm事件) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 private void dg_ItemDataBound(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e){if (e.Item.ItemType == ListItemType.Footer){Button btn = (Button)(e.Item.Controls.FindControl("button1"));btn.attribute["aaa"] = "aaaaa()";}} 自己写了个自定义空间,出现问题,求教 CS0161: “QuoteNEC2000IPS.GetResult(int, int, int)”: 并非所有的代码路径都返回值 ●●●[巨难]DataGrid.LoadViewState 方法 怎么用?请高手指教●●● asp.net 2.0 你们用什么开发? 求电子商务零售业解决方案论文 asp.net 操作滚动图片新闻 请教各位大大~~~ Assembly.Load出错,请各位看看什么问题? 怎么在两个页面之间传值? c#里有没有的分离Email内容的类 怎样用javascript调用.cs中的方法 DataGrid中超级链接列如何显示
{
if (e.Item.ItemType == ListItemType.Footer)
{
Button btn = (Button)(e.Item.Controls.FindControl("button1"));
btn.attribute["aaa"] = "aaaaa()";}
}