110,566
社区成员
发帖
与我相关
我的任务
分享
<select name="DdlTypeId" id="DdlTypeId">
<option value="1">便携式心电</option>
<option value="2">无线血压</option>
<option value="3">无线血氧</option>
<option selected="selected" value="4">无线脂肪</option>
</select>
if (sender is WebBrowser)
{
WebBrowser webbr = (WebBrowser)sender;
HtmlElementCollection btn_Label = webbr.Document.GetElementsByTagName("span");
if (webbr.Name.EndsWith("Equipment"))
{
HtmlElementCollection inputSqltem = webbr.Document.GetElementsByTagName("select");
foreach (HtmlElement eltems in inputSqltem)
{
if (eltems.GetAttribute("ID").ToString().Equals("DdlTypeId"))
{
temss = eltems.GetAttribute("selected").ToString();
break;
}
}
}