I have a template.asp file the contains code like this:
<html> ....<body><div id="wrapper"><div id="container"> ----sideMenu---<div id="body"><%=pageContent%></div></div></body></html>
I have a file index.asp with the code:
<% Dim pageContent = "" %><!--#include virtual="template.aspx"-->
I want to insert in pageContent a lot of html code and asp code withoutconnecting strings like this:
pageContent ="<div class..."&_" bla bla bla "& aspVariable &_"more divs and html and asp variables"...
so i tried to do it like this:
<html> ....<body><div id="wrapper"><div id="container"> ----sideMenu---<div id="body"><% If pageName = "page1" Then %><!--#include virtual="page1.asp"--><% Else If pageName = "page2" Then %><!--#include virtual="page2.asp"--><% Else %><!--#include virtual="page3.asp"--><% End If %></div></div></body></html>
but in asp there is no option to include pages with if statement its not working good...
its load all the files on page loading.
actually i want a dyanmic pages i dont want write the template html codes each pages
i want, that only the pageContent will change.