System Resolution
-
Can anyone tell me how to find the system's resolution from a c# web application using c# code. I know how it can be done in javascript(screen.height) and in c# windows form we can get the height using (System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height) but i want to know how it can be done using c#. Thanks in advance, -Sarah
-
Can anyone tell me how to find the system's resolution from a c# web application using c# code. I know how it can be done in javascript(screen.height) and in c# windows form we can get the height using (System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height) but i want to know how it can be done using c#. Thanks in advance, -Sarah
-
Can anyone tell me how to find the system's resolution from a c# web application using c# code. I know how it can be done in javascript(screen.height) and in c# windows form we can get the height using (System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height) but i want to know how it can be done using c#. Thanks in advance, -Sarah
I guess it is not a straight forward one... C# will be executed in the server side.. Even if you have managed to get screen's resolution using c#, it would be the server's resolution, it wont be the client monitor resolution. What i can suggest you is, you can use JS (screen.height,screen.width) store them to hidden input fields and You can access the hidden fields in the server side using c#.
-
Can anyone tell me how to find the system's resolution from a c# web application using c# code. I know how it can be done in javascript(screen.height) and in c# windows form we can get the height using (System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height) but i want to know how it can be done using c#. Thanks in advance, -Sarah
-
I guess it is not a straight forward one... C# will be executed in the server side.. Even if you have managed to get screen's resolution using c#, it would be the server's resolution, it wont be the client monitor resolution. What i can suggest you is, you can use JS (screen.height,screen.width) store them to hidden input fields and You can access the hidden fields in the server side using c#.
ok , thanks guffa snd sathish and ista for taking the time to reply. -- modified at 23:21 Tuesday 28th February, 2006