Ver Mensaje Individual
  #10 (permalink)  
Antiguo 14/03/2002, 10:17
Ivan
 
Fecha de Ingreso: enero-2002
Ubicación: Veracruz
Mensajes: 67
Antigüedad: 23 años, 4 meses
Puntos: 0
Re: Includes (Solo para conocedores WebMaster)

Alguien Podria Explicarme esto??

<%

'-------------------------------------------------------------
'The "getFileContents" function should be included at the top
'of the ASP file.
'-------------------------------------------------------------

'Declare variables to hold the content of the main page and
'the include file.
Dim strMain, strInclude

'Get the contents of the main page and pass them to the "strMain"
'variable.
strMain = getFileContents("maintemplate.inc")

'Test to see if the "cboFile" select box is being submitted. If so,
'load the requested include file. If not, load the default include.
If Request.form("cboFile") = "" Then
strInclude = getFileContents("includedefault.inc")
Else
strInclude = getFileContents(Request.form("cboFile"))
End If

'After the proper include file contents are loaded ("strInclude"),
'then insert it into the main page ("strMain") using the "Replace"
'function.
strMain = replace(strMain,"<!-- INCLUDE FILE HERE -->",strInclude)

'Use the "Response" Object to "Write" the completed page to the client.
Response.Write strMain


(V)
('.')
(") (")
Gracias