My setup: XML > XSLT > CSS > ASP.NET/
VB.NET (using transformNode) method
My entire site will be dynamic from one ASP.NET doc and several XML, XSLT, and CSS source docs using the QueryString, like this:
http://SERVER/DIRECTORY/index.aspx?p...ir1=&subdir2=&...
My question: How do you link a an external
VB doc server-side within an ASP.NET page, and then call a function from that
VB doc?
My problem: I've successfully been able to create this setup for my site which allows for me to load an external
VB script that contains a function, and call that function from within the ASP.NET doc:
Code:
<%@ Page Language="VB" ContentType="text/html" ResponseEncoding="iso-8859-1" Debug="true" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script language="vb" runat="server" src="/newsite/bgscripts/vb/modules.vb" />
<%
...
Response.Write("<div id='screenright'>")
Response.Write(modules)
Response.Write("</div>")
...
%>
The doc "modules.
vb" contains a function for a set of modules to be displayed:
Code:
Function modules
If Not Page.IsPostBack Then
Response.Write("Hello World!")
End If
End Function
...and the result of the function is: Hello World!
I want to use this setup, only with a dynamic filename. This is what I thought might work:
Code:
<%
'Dynamic module(s)
Response.Write("<script language='vb' runat='server' src='/bgscripts/vb/modules_")
Response.Write(page_path + ".vb' />")
'Results in: <script language='vb' runat='server' src='/bgscripts/vb/modules_home.vb' />
%>
<%
Response.Write("<div id='screenright'>")
Response.Write(modules_home)
Response.Write("</div>")
%>
But this setup isn't working like the first. The error message says that "modules_home is not declared". I realize that it's likely a server-side vs. client-side issue, but I'm just not sure how to set this up for a dynamic site. So I hope that someone could help me to see the light. Thanks for any & all help.
KWilliams