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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calling a <!--#Include file="name.asp"-->. with Arguments?

Status
Not open for further replies.

JuanjoZun

Programmer
Jul 20, 2002
82
0
0
MX
Hello again.

I need to call an include... <!--#Include file=&quot;name.asp&quot;--> but I want to send Arguments that will be used in the NAME.ASP...

I had an ASP page... I wrote something like this:

<!--#include file=&quot;name.asp&quot;?Temp1=123&Temp2=Hello-->
I want to send a text from a TEXTAREA...

Any Ideas?
Juanjo [morning]

Follow the dark side, so you can reach the light.
 
I don't think you can't do it this way.

You can add the code in your NAME.asp file like:

Dim, Temp1, Temp2
Temp1 = &quot;123&quot;
Temp2 = &quot;Hello&quot;

If you want to add the values to your text area type <%=Temp1%> for the text area value.
 
Sorry, maybe you need more details:

I have a Main.asp and Bottom.asp. In Bottom.asp I have a Textarea and a SubmitButton. So, When I write something in the textarea and click send, it would appear in the Main.asp... I need to save this information in a DAtabase... So, when I click the Submitbutton, need to call Add.asp to save in the database, but I need to know the Textareavalue and two more parameters... do you know how I can make this?? Any idea would be helpfull...

thanks for ur time

juanjo

Follow the dark side, so you can reach the light.
 
after your database INSERT, add some javascript. sounds like this is a frame page.
<%
recSet.CommandText =&quot;INSERT INTO customer (cusdriverVer) VALUES (?)&quot;
set objparam=recSet.createparameter(, 200, , 255, cusdriverVer)
recSet.parameters.append objparam
recSet.execute%>
<script type=&quot;text/javascript&quot; language=&quot;JavaScript&quot;>
parent.main.location.href = &quot;Main.asp&quot;;
</script>
 
I did this:
From Main.ASP JavaScript

location.href = &quot;add.asp?MM=&quot; + out;

in Add.ASP JavaScript

before this I created a ADODB.RECORDSET
rsAddComments.Fields(&quot;mensaje&quot;) = Request.QueryString(&quot;MM&quot;)


And in my database is saved this record.

Thanks... See ya later


Follow the dark side, so you can reach the light.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top