Forums

This topic is locked

Fill a textbox with querystring

Posted 24 Oct 2002 12:20:33
1
has voted
24 Oct 2002 12:20:33 andre maas posted:
Hello,

I'm new in asp and have probably a stupid queston but does someone know how to fill a texbox with the results of a querystring.

I have a form with a texbox called 'image'. This one got to be filled with the results of a querystring. (string= www.myweb.com/insert.asp?active.jpg)

How can I fill texbox with 'active.jpg

Thanks 4thetime

Replies

Replied 24 Oct 2002 13:55:25
24 Oct 2002 13:55:25 andre maas replied:
OKE,
If figgered it out myself.

<input name="image" type="text" id="image" value="<%Request.QueryString("image" %>" >

Replied 24 Oct 2002 19:48:14
24 Oct 2002 19:48:14 Ned Frankly replied:
You will want to add the Response.Write shortcut ("=":

<input name="image" type="text" id="image" value="<%=Request.QueryString("image"%>" >


Ned Frankly

Reply to this topic