In my asp.net solution, i am loading a jquery library, but i want to use the right version.by this i mean, version 1.10.1 if the browser is IE version 8 or less, and version 2.0.2 if the browser is not IE, or is IE and version 9 or higher.
As well, it needs to take into consideration, which type of doctype and metatag is used.if it ends up doing a IE8 document standards on IE9 or IE10 for example, then it should load the jquery 1.10.1.
This is how i load my jquery library for example in my
<SharePoint:ScriptLink ID="jquery_ui_js" name="/_layouts/jquery-ui-1.10.3.custom.min.js" runat="server" OnDemand="False" Localizable="False"/>
I would prefer to do this check and load the right one in the asp.net code (
Does anyone know how to do this?
I was thinking about something like this :http://msdn.microsoft.com/en-us/library/ms537512%28v=vs.85%29.aspx
But not sure how to use it here.