我写onitemdatabound事件
protected void dg1_databound(object sender, DataGridItemEventArgs e)
 { e.Item.Attributes.Add("onClick","fun()");
 }
然后写function fun(idx)
{
window.open("WebForm4.aspx");
},执行正确,我现在想给fun()带上一个参数,应该怎么做啊?我是新手,请大家多帮助.