Solved

GetElementByID

Posted on 2009-05-15
9
440 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
Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

 
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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

749 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