Parameter passing question...

  • Thread starter Thread starter skc
  • Start date Start date
S

skc

I have a website with two pages:

1. one.asp
2. two.htm

one.asp contains a DRW, where it displays data from my
access 2000 database. What I want to do is pass a
database field from my database to two.htm without using
<% asp %> scripts, as two.htm contains an email form. The
parameter will be passed into a text box field.

I can pass parameters between two .asp pages, but how to I
pass it from .asp to .htm without using <% asp %> script?

Please help!!

skc
 
It can be done, but I think it might actually be easier doing it with ASP
(of course, that's because I'm familiar with ASP, though). In any case, you
would have to use JavaScript on the receiving HTML page to parse the query
string from the URL, and assign the value to the text box. Here is a link to
a page that demonstrates how to use JavaScript to parse a query string:

http://www.eggheadcafe.com/articles/20020107.asp

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.
 
Back
Top