Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/vb.net/16.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
GetElementById,但我可以';在vb.net中找不到ID_Vb.net_Getelementbyid_Basic - Fatal编程技术网

GetElementById,但我可以';在vb.net中找不到ID

GetElementById,但我可以';在vb.net中找不到ID,vb.net,getelementbyid,basic,Vb.net,Getelementbyid,Basic,我试图在vb.net上使用getelementbyid,但找不到ID,你能帮我吗?按钮代码如下所示: <button class="btn btn-default btn-block" type="button" onclick="start()" 不是每个元素都有Id,那些没有Id的元素不能使用GetElementById访问。您需要使用其他方法,如按类和索引获取。如果没有id,则可能重复,请使用该类。如何使用该类?我是vb.net新手,不知道怎么做。我建议的副本中解释了所有内容,并附

我试图在vb.net上使用getelementbyid,但找不到ID,你能帮我吗?按钮代码如下所示:

<button class="btn btn-default btn-block" type="button" onclick="start()"

不是每个元素都有Id,那些没有Id的元素不能使用
GetElementById
访问。您需要使用其他方法,如按类和索引获取。如果没有id,则可能重复,请使用该类。如何使用该类?我是vb.net新手,不知道怎么做。我建议的副本中解释了所有内容,并附有示例。请检查一下。