Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
嗨TabIndex,只接受 int 类型,像这样使用会引发异常TabIndex='<%#Bind("Id"))必须转换为 int 并存储绑定值。我如何在 aspx 源页面中而不是在代码后面执行此操作?谢谢..
TabIndex
TabIndex='<%#Bind("Id"))
利用
TabIndex='<%#Bind(int.parse("Id")))>'
如果 Id 属性不是 int,则如果它在 gridview 内,则使用这样的方法。
TabIndex='<%# Int32.Parse(Eval("Id").ToString())>'