C
C#15mo ago
Raki

❔ How to set code expression value in web.config settings.

I want to set a c# code in web.config value like below. The value should be used by two different projects thats the reason I want it to be stored in the web.config.
<add key="ResName" value=DateTime.UtcNow.Ticks.ToString()/>
<add key="ResName" value=DateTime.UtcNow.Ticks.ToString()/>
4 Replies
JakenVeina
JakenVeina15mo ago
you can't I'm struggling to figure out how that even makes sense
Raki
RakiOP15mo ago
I want to store the datetime value somewhere and two projects should use this. How to achieve that in this case. I generally do this via web.config key
JakenVeina
JakenVeina15mo ago
what datetime value? the current one? the current one when?
I generally do this via web.config
so, why can't you right now?
Accord
Accord15mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server