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

 what does mainhtml variable contain in the code generated by ccs

Print topic Send  topic

Author Message
Navneet Kakkar
Posted: 01/29/2004, 10:52 AM

CCS generates code in which it used a variable called mainhtml

can we use this variable to set body of email message to be sent on click of
a button.

Or is there any other variable that is used to generate the output.
--
Thanks

luv

Navneet
aquananu@yahoo.com
9811153443


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.573 / Virus Database: 363 - Release Date: 1/29/2004

DonB
Posted: 01/29/2004, 5:10 PM

Not sure we are talking about the same thing, but - "main" is the root node
of the template object named HTMLTemplate. This contains a parsed (tree) of
the template, not directly suited for outputting as a mail message. Since
the "output" methods of the Template class utilizes "Response.Write" you
probably would have a hard time capturing the output.

This is an area that is undocumented, so probably best to stay clear. It
might not work in future release, if you can get it to work now.

--
DonB

http://www.gotodon.com/ccbth


"Navneet Kakkar" <aquananu@YAHOO.com> wrote in message
news:bvbkor$jb6$1@news.codecharge.com...
> CCS generates code in which it used a variable called mainhtml
>
> can we use this variable to set body of email message to be sent on click
of
> a button.
>
> Or is there any other variable that is used to generate the output.
> --
> Thanks
>
> luv
>
> Navneet
>aquananu@yahoo.com
> 9811153443
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.573 / Virus Database: 363 - Release Date: 1/29/2004
>
>

Navneet Kakkar
Posted: 01/29/2004, 8:13 PM

Don, i am talking of the variable in the below section,

IS THERE ANOTHER WAY TO CAPTURE OUTPUT TO A VARIABLE (content.type HTML)

'Show Page @1-E14BF41D
Header.Show Tpl, "Header"
vesselSearch.Show Tpl
vessel.Show Tpl
Footer.Show Tpl, "Footer"
Dim MainHTML, GeneratedWithHTML
HTMLTemplate.Parse "main", False
MainHTML = HTMLTemplate.GetHTML("main")
Response.Write MainHTML
'End Show Page

--
Thanks

luv

Navneet
aquananu@yahoo.com
9811153443
"DonB" <~ccbth~@gotodon.com> wrote in message
news:bvcaum$gnq$1@news.codecharge.com...
> Not sure we are talking about the same thing, but - "main" is the root
node
> of the template object named HTMLTemplate. This contains a parsed (tree)
of
> the template, not directly suited for outputting as a mail message.
Since
> the "output" methods of the Template class utilizes "Response.Write" you
> probably would have a hard time capturing the output.
>
> This is an area that is undocumented, so probably best to stay clear. It
> might not work in future release, if you can get it to work now.
>
> --
> DonB
>
> http://www.gotodon.com/ccbth
>
>
> "Navneet Kakkar" <aquananu@YAHOO.com> wrote in message
>news:bvbkor$jb6$1@news.codecharge.com...
> > CCS generates code in which it used a variable called mainhtml
> >
> > can we use this variable to set body of email message to be sent on
click
> of
> > a button.
> >
> > Or is there any other variable that is used to generate the output.
> > --
> > Thanks
> >
> > luv
> >
> > Navneet
> >aquananu@yahoo.com
> > 9811153443
> >
> >
> > ---
> > Outgoing mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.573 / Virus Database: 363 - Release Date: 1/29/2004
> >
> >
>
>


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.573 / Virus Database: 363 - Release Date: 1/28/2004

DonB
Posted: 01/29/2004, 8:23 PM

That doesn't look anything like what I get with my pages' Show Page code.
But it would seem that you could make a call to HTMLtemplate.GetHTML("main")
whereever you like and retrieve the page. Either that or declare a global
variable (outside the scope of any Function declaration and hack the Show
Page to save MainHTML to your variable for later use. You may have to stuff
it into a session variable to persist the HTML data until you are ready to
use it.

--
DonB

http://www.gotodon.com/ccbth


"Navneet Kakkar" <aquananu@YAHOO.com> wrote in message
news:bvclke$c85$1@news.codecharge.com...
> Don, i am talking of the variable in the below section,
>
> IS THERE ANOTHER WAY TO CAPTURE OUTPUT TO A VARIABLE (content.type HTML)
>
> 'Show Page @1-E14BF41D
> Header.Show Tpl, "Header"
> vesselSearch.Show Tpl
> vessel.Show Tpl
> Footer.Show Tpl, "Footer"
> Dim MainHTML, GeneratedWithHTML
> HTMLTemplate.Parse "main", False
> MainHTML = HTMLTemplate.GetHTML("main")
> Response.Write MainHTML
> 'End Show Page
>
> --
> Thanks
>
> luv
>
> Navneet
>aquananu@yahoo.com
> 9811153443
> "DonB" <~ccbth~@gotodon.com> wrote in message
>news:bvcaum$gnq$1@news.codecharge.com...
> > Not sure we are talking about the same thing, but - "main" is the root
> node
> > of the template object named HTMLTemplate. This contains a parsed
(tree)
> of
> > the template, not directly suited for outputting as a mail message.
> Since
> > the "output" methods of the Template class utilizes "Response.Write" you
> > probably would have a hard time capturing the output.
> >
> > This is an area that is undocumented, so probably best to stay clear.
It
> > might not work in future release, if you can get it to work now.
> >
> > --
> > DonB
> >
> > http://www.gotodon.com/ccbth
> >
> >
> > "Navneet Kakkar" <aquananu@YAHOO.com> wrote in message
> >news:bvbkor$jb6$1@news.codecharge.com...
> > > CCS generates code in which it used a variable called mainhtml
> > >
> > > can we use this variable to set body of email message to be sent on
> click
> > of
> > > a button.
> > >
> > > Or is there any other variable that is used to generate the output.
> > > --
> > > Thanks
> > >
> > > luv
> > >
> > > Navneet
> > >aquananu@yahoo.com
> > > 9811153443
> > >
> > >
> > > ---
> > > Outgoing mail is certified Virus Free.
> > > Checked by AVG anti-virus system (http://www.grisoft.com).
> > > Version: 6.0.573 / Virus Database: 363 - Release Date: 1/29/2004
> > >
> > >
> >
> >
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.573 / Virus Database: 363 - Release Date: 1/28/2004
>
>


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.