Calling a function from html?

BOA_Dev

Active member
Joined
Feb 16, 2007
Messages
32
Programming Experience
1-3
Hello I have a function getRows in my codebehind file that returns html as a string and Im calling it from my html markup file like so:

<% =getRows() %>

but the html isnt rendering. I copied and pasted the output of the function into my html file and it rendered just fine so it seems there must be something wrong with the way Im calling the function from the html file. Any ideas? As always I appreciate your help!
 
Code like that doesn't jsut run in an HTML file.... it's server-side code that runs in something like ASP... So the question is.... 1) What DOES get output? And 2) where is getRows() defined, and does the file that's trying to run it actualy have access to it?

-tg
 
Back
Top