我想從 c# 中的 webbrowser 中的 value 屬性中的“input”元素獲取值字符串textBox7.Text = webBrowser1.Document.GetElementById("ctl00_PlaceHolderMainctl09_ctl00_CurrentPage").GetAttribute("value");<input name="ctl00$PlaceHolderMain$$ctl09$ctl00$CurrentPage" type="text" value="5" maxlength="8" size="3" id="ctl00_PlaceHolderMainctl09_ctl00_CurrentPage" tabindex="1" style="font-family:Verdana;font-size:8pt;padding:1px;">請看這張圖片我想要的數字 --> 5 在我附加的 html 代碼中 value="這個數字我想要將其發送到 textbox7" 之間。
如何在c#中從webbrowser獲取html值屬性的值?
慕桂英4014372
2024-01-20 15:54:40