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: 145
  • Last Modified:

how to get the asp or html page's textbox string in vb

hi i've a web page running on the web where a text box is given the problem is to get that i want to retrive it in vb
how can i parse the html source in the MSHTML.HTMLDocument to get the description text (not links)


plz help
0
araees
Asked:
araees
  • 3
  • 2
  • 2
  • +1
1 Solution
 
bukkoCommented:

Place the textbox in a form and post it to an ASP. For example:

Create 2 files, 1.html and 2.asp

1.html looks like this:

<html>
  <head>
  </head>
  <body>
    <form method='post' action='2.asp'?
      <input name='textbox' id='textbox'></input>
      <input type=submit value='submit'></input>
    </form>
  </body>
</html>

2.asp looks like this:

<%

Dim strText

strText = Request.Form("textbox")
' add some VB here to manipulate strText

Response.Write "strText is " & strText

%>

Hope it helps

bukko
0
 
araeesAuthor Commented:
sorry bukko!!!
what i mean is that if i had a web page running either asp or html and page got a textbox where user can input any text
what i want is that i want to retrive the text in my vb program
0
 
bukkoCommented:

Ah - gotcha!

So, where will the VB be running? On the same machine as the browser?

bukko
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
araeesAuthor Commented:
vb is running on the web server and as far is browser is conserned its internet
0
 
bukkoCommented:

Then the only way to get data from the browser to the server is to send it via http.
If you don't want to use an ASP, you can always write your own web-type service in VB, but I don't see the point.
Why not just post it as in my first suggestion?

Is the web page pre-defined or can you define it as you want?

bukko
0
 
CleanupPingCommented:
Hi araees,
This old question (QID 20555389) needs to be finalized -- accept an answer, split points, or get a refund.  Please see http://www.cityofangels.com/Experts/Closing.htm for information and options.
0
 
GPrentice00Commented:
This question has been classified as abandoned.  I will make a recommendation to the moderators on its resolution in a week or two.  I would appreciate any comments by the experts that would help me in making a recommendation.
It is assumed that any participant not responding to this request is no longer interested in its final deposition.

If the asker does not know how to close the question, the options are here:
http://www.experts-exchange.com/help/closing.jsp

GPrentice00
Cleanup Volunteer
0
 
GPrentice00Commented:
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

 -->Accept bukko's comment as Answer

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER

GPrentice00
Cleanup Volunteer
0

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

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