<asp:HyperLink ID="HyperLink1" NavigateUrl='<%# Eval("ProjectID","MarketingLogList.aspx?ProjectInfoID={0}") %>'  Text='<%# Bind("ProjectName") %>' runat="server"></asp:HyperLink>

<asp:HyperLink id="Hyperlink1" runat="server" NAME="Hyperlink1" NavigateUrl='<%# DataBinder.Eval(Container.DataItem, "id", "DeptRoleModify.aspx?id={0:d}") %>'><%=GetTran("000036", "编辑")%></asp:HyperLink>

<asp:HyperLink id="Hyperlink2" runat="server" NAME="Hyperlink1" NavigateUrl='<%# Eval("id","GroupInfoModify.aspx?id={0}") %>' ><%=GetTran("000036", "编辑")%></asp:HyperLink>

 

以上传递一个参数

 

不过用下面的方法就可以解析传递两个参数

<asp:HyperLink ID="HyperLink1" NavigateUrl='<%# "Marketingloglist.aspx?ProjectInfoID="+Eval("ProjectID")+"&ProjectInfoID="+Eval("ProjectID") %>'  Text='<%# Bind("ProjectName") %>' runat="server"></asp:HyperLink>
 

<asp:HyperLink id="Hyperlink1" runat="server" NAME="Hyperlink1" NavigateUrl='<%# "GroupInfoModify.aspx?id="+Eval("id")+"&type="+Eval("GroupType") %>' ><%=GetTran("000036", "编辑")%></asp:HyperLink>

 

 posted on 2012-12-29 09:03  纳米程序员  阅读(2517)  评论(0编辑  收藏  举报