Need to access the config file key from cshtml page.

  • Thread starter Thread starter Sunil A M
  • Start date Start date
S

Sunil A M

Guest
Hi,


I need to access the key from config file and concatenate that with my css script.

Could you please help me how to do it.


Ex:

config file <add key="Version" value="1.0" />

how to access it with mvc application views shared folder mail cshtml

<link rel="stylesheet" type="text/css" href="~/Content/styles.css?V=???">

Regards,

Sunil

Continue reading...
 
Back
Top