jeudi 30 juillet 2020

ASP.NET MVC : change namespace in web.config under certain conditions?

I have in the main web.config file under the

<system.web.webPages.razor>

a line that calls for a particular resource

<add namespcae="***.resources.male"/>

Now I want to change this line to

<add namespcae="***.resources.female"/>

only if the user is identified as female.

It is possible to check whether the user is male or female through a condition in the web.config file?

Aucun commentaire:

Enregistrer un commentaire