Hi there,
Quick question, i've got a load of functions and subs stored in an #include file that generate different web pages. The idea was that I could have one .asp page that could call the various functions/subs depending on a querystring.
So for example:
<!-- pages.asp -->
SUB page1()
response.write "This is page 1"
end sub
SUB page2()
response.write "This is page 2"
end sub
etc etc etc
The idea then being i have another page which, once it was passed a url like i thought would be as simple as:
whatpage = request.querystring("page")
call whatpage()
The point of this is for a intranet that we're gonna want to just keep plugging stuff into and it would be nice to just add more sub's or functions and let the site handle the rest itself.
Is this even possible? I'm sort of new to the VB thing so I might just be being an idiot ;-)
Quick question, i've got a load of functions and subs stored in an #include file that generate different web pages. The idea was that I could have one .asp page that could call the various functions/subs depending on a querystring.
So for example:
<!-- pages.asp -->
SUB page1()
response.write "This is page 1"
end sub
SUB page2()
response.write "This is page 2"
end sub
etc etc etc
The idea then being i have another page which, once it was passed a url like i thought would be as simple as:
whatpage = request.querystring("page")
call whatpage()
The point of this is for a intranet that we're gonna want to just keep plugging stuff into and it would be nice to just add more sub's or functions and let the site handle the rest itself.
Is this even possible? I'm sort of new to the VB thing so I might just be being an idiot ;-)