?
Solved

GetElementByID

Posted on 2009-05-15
9
Medium Priority
?
444 Views
Last Modified: 2013-11-27
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
Comment
Question by:CyberDemon1337
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
9 Comments
 
LVL 4

Expert Comment

by:rdoran0928
ID: 24398284
       RichTextBox1.Text = SimpleTextBox1.Text
0
 

Author Comment

by:CyberDemon1337
ID: 24398409
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
 
LVL 4

Expert Comment

by:rdoran0928
ID: 24398465
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
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

 
LVL 2

Expert Comment

by:whatisittellme
ID: 24398491
If I understand you right, is this what you want ?

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

0
 

Author Comment

by:CyberDemon1337
ID: 24398532
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
 
LVL 4

Expert Comment

by:rdoran0928
ID: 24399211
getElementById is a Javascript (client-side) function.  Are you writing client-side and/or server-side code?
0
 

Author Comment

by:CyberDemon1337
ID: 24401777
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
 

Author Comment

by:CyberDemon1337
ID: 24401814
Put the points up to 300
0
 

Accepted Solution

by:
CyberDemon1337 earned 0 total points
ID: 24401816
About the above, no I didn't don't have enough points.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question