Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing Text box value 1

Status
Not open for further replies.

LordyLordy

Technical User
Oct 15, 2001
11
GB
Hi,

I'm just wondering if it's possible to use a VB application to load up a html page and send values to a text box, say firstname? So really I guess I'm saying can you update a textbox just by using the URL string?

 
yes though really this is an asp question...

say you wanted your textbox to contain the word 'orange';

the url for the page could

mypage.asp?tValue=orange.

then in your asp page requeat that value like this..
Code:
<%@ language=&quot;VBScript&quot;%>
<%
dim textboxValue
textboxValue = request.querystring(&quot;tvalue&quot;)
%>
<html>
<head>
<title>querystring example</title>
</head>
<body>
<textarea rows=&quot;3&quot; cols=&quot;50&quot;>
Code:
<%=textboxValue%>
</textarea>
</body>
</html>

hope this helps

rob
 
Thanks for the quick reply Rob.
What I've just realised is that I can't do that kind of thing with pure HTML, I thought it was possible with ASP, but the thing is, this visual basic application isn't going to go online, so the ASP can't be processed server side. And unless the user has got PWS installed and set up (not very likely) I'm pretty much screwed. So I take it that it's not possible with just HTML?

 
yeah you can do it with javascript using a similar method

check out this faq

faq216-343

good luck

rob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top