Ike
|
| Posted: 09/23/2004, 11:02 AM |
|

Is there a way to have both files (HTML and ASP) in the same ASP file, I mean can all code be in one OS file?
If Yes, Can some one tell me how to do this?
If Not, Can some one tellme a technical reason why this is not implemented?
I realy appreciate your help in this.
Best Regards,
Iker.
|
|
|
 |
DonB
|
| Posted: 09/23/2004, 8:54 PM |
|
No - because you are working in a "template" model. The HTML file is a
template. It is not code. It is "layout" information. The code resides in
the ASP files.
More precisely, the HTML file contains no SERVER code. It is OK to put
client-side code (usually this is javascript) into the HTML.
Evidently you want to slap some existing ASP pages into a CCS environment.
It's not that hard to separate the two parts and put them in the proper
files. The code should fit into one of the various events that CCS
supports, so that you can predict when it executes and have it work
properly.
--
DonB
http://www.gotodon.com/ccbth
"Ike" <Ike@forum.codecharge> wrote in message
news:241530fc54ebfc@news.codecharge.com...
> 
> Is there a way to have both files (HTML and ASP) in the same ASP file, I
mean
> can all code be in one OS file?
>
> If Yes, Can some one tell me how to do this?
>
> If Not, Can some one tellme a technical reason why this is not
implemented?
>
>
> I realy appreciate your help in this.
> Best Regards,
> Iker.
>
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
Ike
|
| Posted: 09/24/2004, 7:07 AM |
|
Thanks DonB,
Let me explain what I want to do :
I want to have all the code in one single file, Is there a way to put the HTML layout in some kind of variable stored within the same ASP file,
like HTMLTemplate.LoadTemplate MyVarWithTheHTMLCode
instead of
HTMLTemplate.LoadTemplate ScriptPath & TemplateFileName
where MyVarWithTheHTMLCode is a string var with all the htm code generated by codecharge studio.
is it possible?
Thanks again
|
|
|
 |
|