Click here to Skip to main content
15,897,518 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a asp.net website. I need to use it in various computers at various screen resolution. How can I make my screen size compactible with various screen resolution.
XML
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default6.aspx.cs" Inherits="Default6" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>


    <form id="form1" runat="server">

    <div style="width: 100%; height: 100%">


 <br />

           <asp:Button ID="Button1" runat="server" BackColor="#5E4AB5" Text="ITEM REPORT"
                Width="200px" Font-Bold="True" ForeColor="White" onclick="Button1_Click" />

            <asp:Button ID="Button2" runat="server" BackColor="#5E4AB5" Text="INVOICE"
                Width="200px" Font-Bold="True" ForeColor="White" />

            <asp:Label ID="Label1" runat="server" ForeColor="#3399FF" Text="Label"></asp:Label>
        <br />

        <br />
        <br />
    <asp:Image ID="Image1" runat="server" Height="115px"
            ImageUrl="~/images/logo.png" Width="250px" />
        <br />
     <asp:Label ID="Label2" runat="server" BackColor="#FF6600" Font-Bold="True"
            Font-Size="X-Large" ForeColor="#990000"
            Text=" PRODUCT MANAGEMENT SYSTEM- HOME"></asp:Label>

        <br />
      <asp:ImageButton ID="ImageButton1" runat="server" Height="36px"
            ImageUrl="~/images/newlogo.jpg" PostBackUrl="https://www.somatco.com"
            Width="34px" />


    </div>
    </form>
</body>
</html>
Posted
Comments
Sinisa Hajnal 25-Feb-15 4:26am    
You do it by not fixing dimensions of anything. Check around for responsive templates or just learn about responsive web pages and try it yourself. Good luck.

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900