zoukankan      html  css  js  c++  java
  • GridView里做页面的链接

    采用Gridview的OnRowDataBound属性

    后台

    protected void gvTranslateInfo_RowDataBound(object sender, GridViewRowEventArgs e)
            {
                if(e.Row.RowIndex>=0)
                {
                    if(e.Row.RowType==DataControlRowType.DataRow)
                    {
                        e.Row.Cells[1].Text = "<a target=_blank href="http://wfweb.test.aspirecn.com/pzgl/page/WorkFlow/BBBY/BBBY_Default.aspx?sid=5&mid=184089&pid=" + e.Row.Cells[1].Text.ToString() + "&tid=5">" + e.Row.Cells[1].Text.Replace("&amp;lt;", "<").Replace("&amp;gt;", ">") + "</a>";
                    }
                }
            }
  • 相关阅读:
    arm基础
    数据的封装
    网络安全基础
    qt5学习笔记
    nginx修改配置
    proteus_base1
    20191022
    20191015
    20191014
    20191013
  • 原文地址:https://www.cnblogs.com/ZXdeveloper/p/3754536.html
Copyright © 2011-2022 走看看