|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Getting Html generated from an asp page
I know you can use the XMLHTTP object to retrieve Html, but how can you get html created by an asp page? Is there a way.
|
|
#2
|
||||
|
||||
|
try this
Code:
<html>
<body>
<%set myfileobject=server.createobject("scripting.filesystemobject")
set mytextfile=myfileobject.createtextfile("c:\mydir\test.html")
mytextfile.writeline("<html><body>page code</body></html>")
mytextfile.close%>
<%response.redirect("mydir\test.html")%>
</body>
</html>
you may have to change the '\' to '/' if it says you have to give it a virtual directory let me know if that works. |
|
#3
|
|||
|
|||
|
thanks man that worked
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > Getting Html generated from an asp page |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|