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
• ** Site Hacked ** javascript inserted...
• Losing background/text color when converting HTML to PDF
• hidden div block when displayed, displays at an offset of 200px only in IE 6..
• help - sketch
• Re: Perl Script - File Handling.
• Open a file from website
• Re: to open 5 terminals from one and also execute different commands on each terminal
• read a selected multiple line, those should match some of the values read in the files..
• Help me please


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-2008