the pre-init fucntion
<p>i am working in a specific task. 
I have three master pages with three different stylesheet,</p>

<p>I have a javascript function that can detect what the user is using for example window,mobile or i pad...</p>

<p>when the page size for example is less than 700 i want to set master page 1 foe example and when the page size is greater than 700 i want to set it as master page 2 on the pre-init function of the server side </p>

<p>would anyone have a clue to solve my problem </p>
