CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Calling a asp pages and transferring parameters from form

Print topic Send  topic

Author Message
Eliott

Posts: 6
Posted: 05/02/2005, 2:41 PM

Hello there!

I'm shame because always I'm asking something and nothing offer like result but this is only one suitable place for newbie's where is able to ask and receiving usefully answers. My problem is as following:
- I have one page where are situated Search form and Grid for resulting table. After many "error-tray again" and over and over attempts (due to the Listbox and Boolean type of searched fields) I made it and this part of problem is now working, but I don't know how to call another .asp page (written manually or by using CCS) and transfer some values from Search forms of calling page. Why? I wish to be in position that, after executing and performing SQL and getting results into Grid after Search, to click on button and save contents of Grid in TXT file. I made routine that work it for me but only in "directed mode", with manually written code of SQL and in separate .asp file. In order to solve this problem I made on above mentioned CCS page one HTML form and put a button with action:

<form name="frm_caller" action="target1.asp" method="post">
 <input id="Submit1" type="submit" value="Call target.asp" name="Submit1">
</form>

which is able to call called .asp page (here target1.asp) but was unable to get some values from calling page (from Search form). I don't know how to set up this calling and called pages or at least instead how to put working code that produces export filtered recordset into TXT files. I know that is possible to transfer parameters using hidden fields or cookies but as these examples are working fine "written by hand" out of CCS I'm unable to set up CCS pages to do same. Then I turned myself into other direction:
I did in calling page for above form this change:

<form name="frm_caller" action="target1.asp?fields1=123&fields2=456" method="post">
 <input id="Submit1" type="submit" value="Call target.asp" name="Submit1">
</form>

where I transferred two values: fields1 and fields2 to called page. In called page is this part of code:

<%@LANGUAGE="VBSCRIPT" CODEPAGE="1250"%>
<html>
<head>
<title>This is called page Target.asp</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
</head>
<body>
<%
response.write "This page is called at: " & Now() & "<br>"
field_A=request.querystring("fields1")
field_B=request.querystring("fields2")
response.write "Value of fields1: " & polje_A & "<br>"
response.write "Value of fields2: " & polje_B & "<br>"
%>
</body>

and working fine but inapplicable for my purpose. I tried to change form in calling page like that:

<form name="frm_caller" action="target1.asp" method="post">
<%
field1=request.form("s_C_codes")
field2=request form ("s_C_articles")
%>
 <input id="Submit1" type="submit" value="Call target1.asp" name="Submit1">
</form>

and in called form this part:

field_A=request.form("field1")
field_B=request.form("field2")
response.write "Value of field1 is: " & field_A & "<br>"

but nothing! After a week of unsuccessfully try I don't have any idea. :-( Desperately I decided to write this long post.
I would like to know where to put code from example in post: How to export some table into file like comma delimited or similar way and so avoid the calling separate page with code or how to pass parameters to called page for query and save result to file. Any suggestion? Thanks in advance. Fondly, Eliott.
View profile  Send private message
Oper


Posts: 1195
Posted: 05/03/2005, 9:28 AM

Elliot the basic Probelm come about undertanding how CCS work.
2nd ASP is ok.

But first one is a lot simple you done evne need type a code anywhere to pass parameter form a search form.

You only has to tell to the search form what is the ASP that will load after pressing Submit Button (no Code)
_________________
Click the Search Form, GOto Property window, and select return page.
Let me knwo if worked
_________________
____________________________
http://www.7bz.com (Free CMS,CRM Developed in CCS)

http://www.PremiumWebTemplate.com
Affiliation Web Site Templates

Please do backup first
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.