Forums
This topic is locked
Retrieve value to a textfield
08 May 2003 12:29:38 Chriz L. posted:
Hello guyz!I'm just getting started with ASP and i want to know how can i add a value that i retrieve from my database to a form textfield??Also,I want to i ask how can i redirect the user to a url after 30 second passes?
Thanks in advance!
Edited by - dealwi8me on 08 May 2003 12:37:48
Edited by - dealwi8me on 08 May 2003 12:48:40
Replies
Replied 08 May 2003 14:16:16
08 May 2003 14:16:16 Jonathan Danylko replied:
For question one, you would put the RecordSet field into the value of your edit box, like soooooo....
For question two, use a meta tag in your heading tags for the refresh....
This will go to www.dmxzone.com after 5 seconds.
Hope this helps. :-D
L8R,
Vitoman, M CIW D, MMCP
<input type="text" name="date" value="<%=(rsEvents.Fields.Item("date").Value)%>" size="32">
For question two, use a meta tag in your heading tags for the refresh....
<meta http-equiv="refresh" content="5;url=http://www.dmxzone.com/">
This will go to www.dmxzone.com after 5 seconds.
Hope this helps. :-D
L8R,
Vitoman, M CIW D, MMCP
Replied 08 May 2003 14:26:03
08 May 2003 14:26:03 Lee Diggins replied:
Hi,
something like this for the textfield:
and this for the timer redirect:
Digga
Sharing Knowledge Saves Valuable Time!!!
something like this for the textfield:
<input name="txtField" type="text" id="txtField" value="<%=(rsMyRecordset.Fields.Item("myColumn").Value)%>">
and this for the timer redirect:
<script language=JavaScript> function A(){ window.navigate("myPage.asp"); } setTimeout("A()",30000); </script>
Digga
Sharing Knowledge Saves Valuable Time!!!
Replied 08 May 2003 15:10:53
08 May 2003 15:10:53 Chriz L. replied:
Thank you both!!!
That's what i was looking for!<img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
That's what i was looking for!<img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>