PC Review


Reply
Thread Tools Rate Thread

Configuration for aspx Page

 
 
Jacques Oberto
Guest
Posts: n/a
 
      16th Oct 2009
Hi All,

I have a aspx page which generates an image based on
URL parameters. Some parameters vary at each request
and some vary only between separate deployments.
I would like to avoid to use the seldom used parameters
in the URL and also avoid "hard coding" them in the aspx
page.

I was thinking of using a "config file" on disk to store those
parameters, but will that solution impose disk access at
each request? Would that config file be cached into memory?

Please let me know if you think of a more efficient way.
Thanks,

Jacques


 
Reply With Quote
 
 
 
 
Patrice
Guest
Posts: n/a
 
      16th Oct 2009
Hi,

> I have a aspx page which generates an image based on
> URL parameters. Some parameters vary at each request
> and some vary only between separate deployments.
> I would like to avoid to use the seldom used parameters
> in the URL and also avoid "hard coding" them in the aspx
> page.


Having the whole picture could help. For example if you are using a
parameter to prevent caching of ealier image and have the new version
downloaded when the app is updated, it could be something that is just
created when not already present (that is computed after the application
starts).

You'll just loose caching if the application restarts but it should happen
unfrequently under normal circumstances. When the application is updated you
have nothing to do to get new images client side.

>
> I was thinking of using a "config file" on disk to store those
> parameters, but will that solution impose disk access at
> each request? Would that config file be cached into memory?


AFAIK the config file is cached (else it's quite easy to have a class that
does this an expose your settings as you wish)...

--
Patrice



 
Reply With Quote
 
Alexey Smirnov
Guest
Posts: n/a
 
      16th Oct 2009
On Oct 16, 10:40*am, "Jacques Oberto" <j...@nospam.com> wrote:
> Hi All,
>
> I have a aspx page which generates an image based on
> URL parameters. Some parameters vary at each request
> and some vary only between separate deployments.
> I would like to avoid to use the seldom used parameters
> in the URL and also avoid "hard coding" them in the aspx
> page.
>
> I was thinking of using a "config file" on disk to store those
> parameters, but will that solution impose disk access at
> each request? Would that config file be cached into memory?
>


You can use a web.config file for this. It's cached in memory.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to fire off a completely seperate .aspx page from within an .aspx web page. S_K Microsoft ASP .NET 0 1st Oct 2007 11:40 PM
How to fire off a completely seperate .aspx page from within an .aspx web page. S_K Microsoft ASP .NET 0 1st Oct 2007 11:40 PM
How to fire off a completely seperate .aspx page from within an .aspx web page. S_K Microsoft ASP .NET 0 1st Oct 2007 11:40 PM
Syntax for call from aspx page to .cs file then to different aspx page MadHatter51 Microsoft ASP .NET 1 17th May 2006 11:43 AM
How to Pass values between from a popup page aspx & a normal page aspx Marco Antonio Montalvo Durán Microsoft ASP .NET 2 23rd Jan 2004 09:35 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:36 AM.