P
Paul Mason
Hi folks,
Just wondering how I can call a function in a code behind file from within
the body of the ASPX file.
The old ASP way was to use <%= MyFunction() %>, but that doesn't seem to
work anymore...Thus :
<body MS_POSITIONING="GridLayout">
<form id="frmAssessmentPrint" method="post" runat="server">
</form>
<% MyFunction() %>
</body>
I've tried a straight FunctionCall(), classname.FunctionCall() and
parent.FunctionCall().
I'm pretty certain that I've seen it somewhere in the help system or the
MSDN docs, but can't recall where. Is it possible at all from a code that's
in a seperate .VB code behind file??
To give you some background I'm writing a report where I'm parsing my data
into HTML. At the moment I'm feeding the output through the page_load event
using the reponse.write method, but it's putting the HTML before the <HTML>
tag. I've tried other events, but with no success. It's working OK like
this, but I suspect browsers other than IE will have problems with it.
Also, it's just generally useful to know...
Thanks in advance....Paul
Just wondering how I can call a function in a code behind file from within
the body of the ASPX file.
The old ASP way was to use <%= MyFunction() %>, but that doesn't seem to
work anymore...Thus :
<body MS_POSITIONING="GridLayout">
<form id="frmAssessmentPrint" method="post" runat="server">
</form>
<% MyFunction() %>
</body>
I've tried a straight FunctionCall(), classname.FunctionCall() and
parent.FunctionCall().
I'm pretty certain that I've seen it somewhere in the help system or the
MSDN docs, but can't recall where. Is it possible at all from a code that's
in a seperate .VB code behind file??
To give you some background I'm writing a report where I'm parsing my data
into HTML. At the moment I'm feeding the output through the page_load event
using the reponse.write method, but it's putting the HTML before the <HTML>
tag. I've tried other events, but with no success. It's working OK like
this, but I suspect browsers other than IE will have problems with it.
Also, it's just generally useful to know...
Thanks in advance....Paul