Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 449
  • 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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