codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  values from asp to html  brightmessenger at 16:30 on Tuesday, November 27, 2007
 

I have written an .asp file that has a little html code in it. The file is located on my web site. It is called and supplied with a 'filename' and 'data' which is used to write a new .html page on my web site. I would like to be able to allow the user to jump to this new .html page after the file is written.

The filename is received by the .asp portion of the page, but how do I code the .html submit button to know the filename so it can jump to the new page.

The .asp page code is below:

<% runat="Server"


if request.form.count > 0 then
dim FSO
dim objstream
dim strtext
dim strcomment
dim jaddress

const TristateFalse = 0


set FSO=createobject("Scripting.filesystemobject")

strtext = "reports.mywebpage.com\" & request.form("title") & ".html"

strcomment = request.form("comment")


%>

<%
function getjaddress
getjaddress="http://www.reports.mywebpage.com\" & request.form("title") & ".html"
end function
%>

<HTML>
<HEAD>
<TITLE> Services Report </TITLE>
</HEAD>
<BODY>


<form name="form1" action=getjaddress method="GET">


<input type="Submit" value="View My Report" >
<br><br>
</form>

</BODY>
</HTML>
<%

Set objStream = FSO.CreateTextFile(strtext , True, TristateFalse)

With objstream

.WriteLine strcomment
.close

End With

set FSO=nothing
set objstream=nothing
set strtext=nothing
set strcomment=nothing
end if
%>








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums
//








Recent Forum Threads
•  Re: Page Load is getting called twice
•  values from asp to html
•  Re: Write text strings to Serial Port
•  Calcluate Date Difference [Seriouslt a new challenge]
•  source code to generate perl library
•  Plz Help Me Out...!!! I want to add a crystal report to my application
•  Floating div
•  Re: open excel file in html page
•  Such A Newbie - Mailing Label Program


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2007