• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 451
  • Last Modified:

GetElementByID

Say if there was a textbox on a webpage and I had the ID to it, what code would I use to get the contens of it then put in into a RichTextBox, in VB.net  the ID is resultsBox if you needed it.

0
CyberDemon1337
Asked:
CyberDemon1337
  • 5
  • 3
1 Solution
 
rdoran0928Commented:
       RichTextBox1.Text = SimpleTextBox1.Text
0
 
CyberDemon1337Author Commented:
What? How about I put the contens of the RichTextBox to string then do RichTextBox1.Text = stringname

What would the code be for that?
0
 
rdoran0928Commented:
I thought you just wanted to put the contents of a regular text box into a rich text box.  If that is the case, the assignmenet I showed would suffice.  Are you trying to do something different?  Please give more details.
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
whatisittellmeCommented:
If I understand you right, is this what you want ?

Dim Str As String = RichTextBox1.Text.ToString
SimpleTextBox1.Text = Str

0
 
CyberDemon1337Author Commented:
I wanted to get the contens of a textbox on a webpage (The ID is resultsBox) then I want to put it into a RichTextBox in my app. So I would get the element by ID from the webbrowser of resultsBox then I dunno what I'd do next to put it to string then put it into my richtextbox1
0
 
rdoran0928Commented:
getElementById is a Javascript (client-side) function.  Are you writing client-side and/or server-side code?
0
 
CyberDemon1337Author Commented:
I am making a program in Microsoft Visual Basic with a WebBrowser and I want to get the text in a textbox in the webpage then put it into my RichTextBox1
0
 
CyberDemon1337Author Commented:
Put the points up to 300
0
 
CyberDemon1337Author Commented:
About the above, no I didn't don't have enough points.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 5
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now