W
wzjlg
Unregistered / Unconfirmed
GUEST, unregistred user!
使用 Response.Write(<script>alert('OK')</script>);
后 网页的布局变乱了,没有弹出对话框之间布局是正常的的,弹出后就不行了!急急急急急! ( 积分: 70 )<br />[?][?][?][?][?] cs文件中的:
Label1.Text = "<script>alert('OK')</script>";
Response.Write(Label1.Text);
aspx 文件中的
<%@ Page Language="C#"
AutoEventWireup="true"
CodeFile="Default.aspx.cs"
Inherits="_Default"
%>
<!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>无标题页</title>
<link href="StyleSheet.css"
type="text/css"
rel="stylesheet"/>
</head>
<body>
<form id="form1"
runat="server">
<div style="height:50%;background-color:Red">
<asp:Button ID="Button2"
runat="server"
Text="Button2"
OnClick="Button2_Click"
/>
<asp:Label ID="Label1"
runat="server"
Text="Label"></asp:Label>
<asp:Button ID="Button1"
runat="server"
OnClick="Button1_Click"
Text="Button"
/>
<asp:FileUpload ID="FileUpload1"
runat="server"
/>
</div>
</form>
</body>
</html>
stylesheet 文件中的
BODY {
BACKGROUND-COLOR: #FFFFFF;
FONT-SIZE: 10pt;
LINE-HEIGHT: normal;
MARGIN-LEFT: 0px;
MARGIN-RIGHT: 0px;
MARGIN-TOP: 0px;SCROLLBAR-FACE-COLOR: LightGray;
SCROLLBAR-SHADOW-COLOR: #ffffff;
SCROLLBAR-3DLIGHT-COLOR: Gainsboro;
SCROLLBAR-ARROW-COLOR: #ffffff;
BORDER-BOTTOM: #ffffff 0px;
SCROLLBAR-DARKSHADOW-COLOR: Gainsboro;
BORDER-COLLAPSE: collapse ;
height:100%;
}
后 网页的布局变乱了,没有弹出对话框之间布局是正常的的,弹出后就不行了!急急急急急! ( 积分: 70 )<br />[?][?][?][?][?] cs文件中的:
Label1.Text = "<script>alert('OK')</script>";
Response.Write(Label1.Text);
aspx 文件中的
<%@ Page Language="C#"
AutoEventWireup="true"
CodeFile="Default.aspx.cs"
Inherits="_Default"
%>
<!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>无标题页</title>
<link href="StyleSheet.css"
type="text/css"
rel="stylesheet"/>
</head>
<body>
<form id="form1"
runat="server">
<div style="height:50%;background-color:Red">
<asp:Button ID="Button2"
runat="server"
Text="Button2"
OnClick="Button2_Click"
/>
<asp:Label ID="Label1"
runat="server"
Text="Label"></asp:Label>
<asp:Button ID="Button1"
runat="server"
OnClick="Button1_Click"
Text="Button"
/>
<asp:FileUpload ID="FileUpload1"
runat="server"
/>
</div>
</form>
</body>
</html>
stylesheet 文件中的
BODY {
BACKGROUND-COLOR: #FFFFFF;
FONT-SIZE: 10pt;
LINE-HEIGHT: normal;
MARGIN-LEFT: 0px;
MARGIN-RIGHT: 0px;
MARGIN-TOP: 0px;SCROLLBAR-FACE-COLOR: LightGray;
SCROLLBAR-SHADOW-COLOR: #ffffff;
SCROLLBAR-3DLIGHT-COLOR: Gainsboro;
SCROLLBAR-ARROW-COLOR: #ffffff;
BORDER-BOTTOM: #ffffff 0px;
SCROLLBAR-DARKSHADOW-COLOR: Gainsboro;
BORDER-COLLAPSE: collapse ;
height:100%;
}