CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 HTLM and ASP in the same OS File

Print topic Send  topic

Author Message
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

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.