Get a value

If you need help with a project or need to know how to do something specific in VB.NET then please ask your questions in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
3 posts Page 1 of 1
Contributors
User avatar
patrickcosta
New Member
New Member
Posts: 16
Joined: Wed Jun 27, 2012 8:59 pm

Get a value
patrickcosta
Hello guys, once a time no one answered me in my last post ( viewtopic.php?f=21&t=9513 ) , I want to know how to get this value (that is in source code) in a label :
Code: Select all
<input type="hidden" name="sid" value="54b3e4c2e8b41d84c1851ea690dcced0" />
Some code that makes my Label.Text = 54b3e4c2e8b41d84c1851ea690dcced0
Confuse ? :S

Thanks in Advance
User avatar
CodenStuff
Site Admin
Site Admin
Posts: 4392
Joined: Tue Aug 04, 2009 1:47 am

Re: Get a value
CodenStuff
Try:
Code: Select all
Label1.Text = WebBrowser1.Document.All("sid").GetAttribute("value")
Welcome to CodenStuff.com Learn Code, Love Code. Thank you for being a member of the community.
User avatar
patrickcosta
New Member
New Member
Posts: 16
Joined: Wed Jun 27, 2012 8:59 pm

Re: Get a value
patrickcosta
CodenStuff wrote:
Try:
Code: Select all
Label1.Text = WebBrowser1.Document.All("sid").GetAttribute("value")
Yap, it works ! Thank you!
3 posts Page 1 of 1
Return to “Coding Help & Support”