zwei1121

博客园 首页 新随笔 联系 订阅 管理
1、使用javascript函数:
 
<ItemTemplate>
     
<asp:HyperLink ID="EditLink" Runat=server NavigateUrl='<%# "javascript:edit(escape(\"" + DataBinder.Eval(Container.DataItem, "subcid") + "\"))" %>' ImageUrl="image/edit.gif" text="编辑">
     
</asp:HyperLink>
</ItemTemplate>

2、
NavigateUrl='<%String.Format("~/Manager/UpdateLog.aspx?ID={0}",Request.QueryString["cid"]) %>'

NavigateUrl='<%String.Format("~/Manager/UpdateLog.aspx?ID={0}",Eval(Request.QueryString["cid"])) %>'

3、
NavigateUrl='<%"showarticle.aspx?cid=" + Request.QueryString["cid"] %>'
posted on 2008-04-27 14:58  zwei  阅读(427)  评论(0编辑  收藏  举报