views:

163

answers:

3

Hi, Is there a way write code in web.config file using preprocessed function. Say I created environment variables like %Temp%, %WINDIR%. order to read these I can use the configurationManager class. But I dont want to use it. I woudl like to use a preprocessed function similar to timeStampPattern="{timestamp(local)}". Here timestamp(local) retrieves the value directly. So in a similar way can i read the environment variables %temp% and %windir% using preprocessed function if any exists?

+2  A: 

No. There's no way to do this.

John Saunders
A: 

ya.. no way coming to mind!!

Nitin Garg
This does nto answer his question.
Shoban
atleast i tried!!
Nitin Garg
+1  A: 

Are you looking for Environment.getenvironmentvariable()? You will need to find and replace them yourself.

No Refunds No Returns