ItemDataBound中打开新页面如何增加参数?
deria 2007-05-16 11:30:33 我在dgProduct_ItemDataBound事件中写了如下代码:
if((e.Item.ItemType==ListItemType.Item)||(e.Item.ItemType==ListItemType.AlternatingItem)||(e.Item.ItemType==ListItemType.SelectedItem))
{
Button bt=(Button)e.Item.FindControl("dgBarcodeInput");
bt.Attributes.Add("onclick", "javascript:window.showModalDialog('/scm/BarcodeInPut.aspx','window','dialogwidth:450px;dialogheight:400px;help:0;center:yes;resizable:0;status:0;scroll:yes');");
}
现在我想在弹出的新页面路径中增加一个参数。就是当前行的第一列的值,不知道如何才能实现?谢谢大家!