当标签上写了runat="server" 后,<%%>就会无效

 

//这是错误的写法

<input type="hidden" runat="server" />

//正确写法应该是去掉 runat="server",这样才能正常的使用<%%>来绑定数据

<input type="hidden" />

 

相关文章:

  • 2022-12-23
  • 2021-08-30
  • 2021-09-13
  • 2022-02-25
  • 2022-12-23
  • 2021-11-24
  • 2021-11-23
  • 2021-10-11
猜你喜欢
  • 2022-12-23
  • 2022-01-07
  • 2022-12-23
  • 2021-06-16
  • 2021-05-02
  • 2022-01-08
相关资源
相似解决方案