HyperLinkColumn用法

来源:互联网 发布:定额编号查询软件 编辑:程序博客网 时间:2024/05/21 11:37
<asp: HyperLinkColumn Text ="回访" DataNavigateUrlField ="BillID" DataNavigateUrlFormatString="javascript:EditPs({0})">
<HeaderStyle Width="5%">
</HeaderStyle>
<ItemStyle Wrap="False" HorizontalAlign ="Center">
</ItemStyle>
</asp: HyperLinkColumn>

功能:将 BillID 替换 {0},并将BillID传到 id,id再传到弹出的url中


function EditPs(id) {
    var url = "RepairHuifang.aspx?id=" +id;
    window.showModalDialog(url, "", "status:no;resizable:no;help:no;dialogHeight:320px;dialogWidth:400px;center:yes" );
}