本文介绍了如何设置网页分辨率的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
How to Set web page resolution according to screen in asp.net(C#)
I m Working with Web Application
推荐答案
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="~/Default.aspx.cs" Inherits="Default" %>
<%@ Register Assembly="BasicFrame.WebControls.BasicDatePicker" Namespace="BasicFrame.WebControls"
TagPrefix="BDP" %>
<!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>Web Employee Master</title>
<style type="text/css">
#form1
{
text-align: center;
}
</style>
</head>
<body style="background-color: #cc6699">
<form id="form1" runat="server">
<table>
<tr>
<td>
<asp:Label ID="lblEmployeeMaster" runat="server" Text="Employee Master" Font-Bold="True"
BackColor="#FFFF99" BorderColor="Black" BorderStyle="Dotted" Font-Underline="True"
Style="text-align: center" Width="244px" Font-Size="X-Large" Height="28px"></asp:Label>
</td>
</tr>
<tr>
<td>
<table width="100%">
<tr>
<td align="left">
<table>
<tr>
<td>
<b>Employee ID :</b>
</td>
<td>
</td>
<td>
<asp:TextBox ID="txtEmpID" runat="server" Width="150px" ReadOnly="True" MaxLength="5"></asp:TextBox>
</td>
</tr>
<tr>
<td>
<b>Employee Name</b> <b>:</b>
</td>
<td>
</td>
<td>
<asp:TextBox ID="txtEmpName" runat="server" Width="150px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Must not be Blank."
ControlToValidate="txtEmpName" SetFocusOnError="true"></asp:RequiredFieldValidator>
</td>
</tr>
</table>
</table>
这篇关于如何设置网页分辨率的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!