I recently encountered a situation where I needed to convert client-side code into server-side code. Here is an example of what I did:
strHTMLGrid = strHTMLGrid + "<link rel='shortcut icon' href='/EVServer/Images/favicon.ico'/> \n";
When displaying this code on the client-side, it appears as follows:
<link rel="shortcut icon" href="/EVServer/Images/favicon.ico" />
However, when the HTML file is executed dynamically, it appears as:
<link rel='shortcut icon' href='/EVServer/Images/favicon.ico'/>
I am curious to know what additional code I can add in the code behind in order to achieve the desired output in my HTML file dynamically. Specifically, in C#, I would like the code to display as follows:
<link rel="shortcut icon" href="/EVServer/Images/favicon.ico" />