Literal lt = new Literal();
lt.Text = "<a href=\"http://www.czbin.cn\">czbin的博客</a>"; //定义lt中的文本,注意双引号要用"\"转义
form1.Controls.Add(lt); //将lt中的html代码加入form1标签中(必须是runat="server"的)

相关文章:

  • 2021-03-31
  • 2022-12-23
  • 2022-12-23
  • 2021-06-01
  • 2022-12-23
  • 2021-11-24
  • 2021-12-26
  • 2022-12-23
猜你喜欢
  • 2021-07-26
  • 2022-03-01
  • 2022-01-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案