ASP.NET - website display constant in all resolutions

Asked By kiran kumar on 03-Apr-12 06:43 AM
hi,

 i have designed one website in ASP.NET, visual studio 2010.  My Laptop screen resolution is 1280x1024 .

 I have compiled and run the site, it is fit to my window. Now, i have published the website and put in Web hosting. If anyone opens the website URL from web browser, under their system's screen resolution (if it is 1024x768), then it is not fit to the window. side bars are coming at the bottom of the window.

How to overcome this?

 How to set the website constant display for all the resolutions of systems??  
dipa ahuja replied to kiran kumar on 03-Apr-12 07:02 AM
Way 1 :
 
Visit this site, it provide the framework to manage the resolution css which matches to all systems.
 
<http://960.gs/>
 
Way 2:
 
Prompt the user About perfect Browser and screen resolution for your website in the page load:
 
  protected void Page_Load(object sender, EventArgs e)
  {
  if (Session["Resolution_Warn"] == null)
  {
    ClientScript.RegisterClientScriptBlock(this.GetType(), "", "<script> if(screen.width!=1024 && screen.height!=768){alert('Site can be  Best viewed on 1024x768 resolution');}</script>");
    Session["Resolution_Warn"] = 1;
  }
 }
And at the bottom of the webpage you can write the message : Best Viewed in Mozilla FireFox
hope you get it..!