I've got a Master page, which loads my Default.aspx
I need to get the browser version using
function loadHiddenField()
{
document.getElementById("HiddenField1").value = document.documentMode;
}
The result of this needs to be passed to my Default.aspx page so that I can use it in a Linq query used to populate the page. This all happens when my site first loads.
So:
1) Type in my site URL
2) Page loads, displaying the correct information in the default.aspx page depending on what browser version you are using.
I originally tried to call the method using the client side body onload, but I realise that this won't work.. So I need to know what does work..
Please don't tell me to use HttpBrowserCapabilities, because that won't work.. What I have in the JavaScript above is what I need.
I'm stuck and really need help here.. I've asked this question previously, but the only person that tried to help deleted his post.