|
-
Nov 22nd, 2019, 07:35 AM
#1
Thread Starter
Junior Member
can't set radio button to checked in group via webbrowser control
Having trouble setting a radio button via a webbrowser control in visual basin .net. This is the HTML code I'm trying to act upon!
<td align="right">
Afficher statuts :
</td>
<td>
<label for="Company">
<input type="radio" id="Services" value="true" name="requestinfo_0" />
Company
</label>
<label for="Partener">
<input type="radio" id="Workload" value="false" name="requestinfo_0" />
Partener
</label>
<label for="All">
<input type="radio" id="All" value="" name="requestinfo_0" />
All
</label>
The suggested solution I found searching shows it should work like this! But doesn't!
WebBrowser1.Document.GetElementById("Workload").SetAttribute("Checked", True)
But I believe I would need to specify the name as well as from what I can tell its possible to have more than 1 ID as Workload but in a radio button with a different name. But I can't see where or how to write the code accordingly!
I'm doing this in Visual studio 2019 in Visual basic!
Thanks Pete
Last edited by peterg2000; Nov 22nd, 2019 at 07:55 AM.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|