If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Dynamic SSI

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-25-03, 16:16
McFrisch McFrisch is offline
Registered User
 
Join Date: Sep 2003
Location: Ohio
Posts: 7
Question Dynamic SSI

I think that I may know the answer to this, but maybe someone can give me some input. I am writing an application with ASP and what the user to select an item from a listbox. After submission, I would like the subsequent ASP target to dynamically include a file on the server side. So is there a workaround to:
<!--#include file="<%=filename%>.inc" {I wish you could do this!}
since includes are parsed before ASP code?

Thanks for the help!

McFrisch
Reply With Quote
  #2 (permalink)  
Old 11-25-03, 18:08
jbroder jbroder is offline
Registered User
 
Join Date: Jun 2003
Posts: 20
I think the only way to get this to happen would be to do a response.redirect to the different pages. there is no workaround to get a dynamic include, but you could redirect to a set of different pages that have the different includes.

just a thought, hope it helps.
Reply With Quote
  #3 (permalink)  
Old 11-25-03, 18:41
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
What is the include file going to have in it??

You can't do exactly what you want but perhaps you could do it slightly differently depending on exactly what you are trying to achieve....
Reply With Quote
  #4 (permalink)  
Old 11-26-03, 14:05
McFrisch McFrisch is offline
Registered User
 
Join Date: Sep 2003
Location: Ohio
Posts: 7
Question include content

Well I am going to try the redirects... but to further describe the application, I am writing some pages that will calculate concentrations of various chemicals to make a particular electrolyte that the user inputs. So the calculations for Electrolyte A are different than that for Electrolyte B. I was going to have a common parameter page, and use different includes that do the specific calculations. The includes contain vbscript, although I could use Jscript instead, as well as ASP. How does the content make a difference, however, if the includes are processed before the ASP code?
Reply With Quote
  #5 (permalink)  
Old 11-26-03, 15:42
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
Can the calculations be done in Javascript?? If so why not make them client side??
Reply With Quote
  #6 (permalink)  
Old 11-26-03, 17:33
rnealejr rnealejr is offline
Registered User
 
Join Date: Feb 2002
Posts: 2,232
I agree with rokslide - based on your description javascript would solve your problem.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On