Click to See Complete Forum and Search --> : How to let VB script code embedded in a string executed?


George123
07-30-2003, 04:14 PM
Hi,

I have a template which reads in an ASP page and extracts some contents into a string to display. However the extracted contents have some VB script code embedded in. The string looks like this:

<select NAME=APTYPE>
<OPTION VALUE=10>--- Select Application Type ----</OPTION>
<% Requester.GetAptypes %>
</select>

When I use

Response.write(string)
or
<%=string%>

it outputs the string exactly like above. <% Requester.GetAptypes %> is not executed at all. Even if I extract Requester.GetAptypes into another string2,

<%=string2> will still output as a plain text: Requester.GetAptypes, not all options. Anybody has any idea how can I let the embedded code <% Requester.GetAptypes %> executed?

Thanks a lot for your help.

George