I am working on a multilingual website and need to include CSS file based on either Query String or CultureInfo.
How can a include/add file using c# code i need to write this code in master page.
If language is English then i need to add english.css if language is Arabic then i need to add arabic.css
<link href="~/Styles/english.css" rel="stylesheet" type="text/css" />
I am not able to get much help from net.
You can use inline C# code in your aspx files by using <% %> code segments.
in this case you just put a simple check as follow :