Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/85.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
VB.NET Javascript-创建表格时设置表格行样式_Javascript_Html_Vb.net - Fatal编程技术网

VB.NET Javascript-创建表格时设置表格行样式

VB.NET Javascript-创建表格时设置表格行样式,javascript,html,vb.net,Javascript,Html,Vb.net,我正在尝试在VB.NET中使用此项目: 我遇到的问题是表行ID: 我的项目: <tr id="gridStores" style="display:none;"> 在调用之前,当我调用客户端ID时,它是:“linM_2” 之后是:“网格商店” 为什么添加行时会丢失名称?这种行为是出于某种原因吗 谢谢大家! 我的项目: 工作样本: 这行代码修复了我的问题: newRow.ClientIDMode = UI.ClientIDMode.Static 我不能100%确定我是否

我正在尝试在VB.NET中使用此项目:

我遇到的问题是表行ID:

我的项目:

<tr id="gridStores" style="display:none;">
在调用之前,当我调用客户端ID时,它是:“linM_2”

之后是:“网格商店”

为什么添加行时会丢失名称?这种行为是出于某种原因吗

谢谢大家!

我的项目:

工作样本:

这行代码修复了我的问题:

    newRow.ClientIDMode = UI.ClientIDMode.Static
我不能100%确定我是否理解为什么需要它,以及为什么VB.NET凌驾于我的表格命名之上。如果有人能编辑这个答案并解释更多,我将不胜感激

谢谢大家!

htmlTab.Controls.AddAt(newRowIndex, newRow)
    newRow.ClientIDMode = UI.ClientIDMode.Static