Is it possible to add javascript reference dynamically from code behind aspx.cs?
Like this:
private void AddScriptReference(string path)
{
//Add reference to <head></head>
}
Should result in a script reference being added to the head of the page, like this:
<html>
<head>
<script type="text/javascript" src="path-to-script.js"></script>
</head>
</html>
Is this possible?