zoukankan      html  css  js  c++  java
  • System.Web.UI.WebControls.Table的使用

    以下代码为新增一行,第一列为标题,第二列为图片:

     1            TableRow tr1 = new TableRow();
     2            TableCell c1 = new TableCell();
     3            c1.Width = 100;
     4            c1.CssClass = "1";
     5            c1.Text = "";
     6            c1.ID = "c11";
     7            tr1.Controls.Add(c1);
     8
     9            TableCell c2 = new TableCell();
    10            c2.ID = "c12";
    11            c2.CssClass = "2";
    12            System.Web.UI.WebControls.Image image1 = new System.Web.UI.WebControls.Image();
    13            image1.Width = 400;
    14            image1.Height = 300;
    15            image1.ImageUrl = "../" + picPath;
    16            c2.Controls.Add(image1);
    17            tr1.Controls.Add(c2);
    18
    19            this.Table1.Rows.Add(tr1);
    20
  • 相关阅读:
    HTTP RFC解析
    Symfony框架的笔记
    Swoole学习总结1
    PHP Socket 学习笔记一
    Js解决解除多次Ajax请求的事件
    Python 操作串口
    python 实现微信自动回复和好友签名分析
    杂谈1
    Vue.js 功课1
    微信API demo
  • 原文地址:https://www.cnblogs.com/wjhx/p/759414.html
Copyright © 2011-2022 走看看