为什么屏幕刷新后,字体会会变大

sunck 2010-01-25 09:08:17
<div id="1"; style=" font-size:small">

<table style="width: 100%; " >


<tr>
<td style="width:8%">
<asp:Label ID="Label28" runat="server" Text="子区域"></asp:Label>
</td>
<td style="width:12%">
<asp:DropDownList ID="SubArea" runat="server"
DataSourceID="SqlDataSourceSubArea" DataTextField="subarea_name"
DataValueField="subarea" ondatabound="SubArea_DataBound">
</asp:DropDownList>
</td>
<td style="width: 8%">
<asp:Label ID="Label9" runat="server" Text="起始日期"></asp:Label>
</td>
<td style="width: 12%">
<asp:TextBox ID="DateStart" runat="server" Width="80px"></asp:TextBox>
</td>
<td style="width: 8%">
<asp:Label ID="Label22" runat="server" Text="截至日期"></asp:Label>
</td>
<td style="width: 16%">
<asp:TextBox ID="DateEnd" runat="server" Width="80px" AutoPostBack="True"></asp:TextBox>
</td>
<td style="width: 10%">
<asp:Label ID="Label19" runat="server" Text="交易地点"></asp:Label>
</td>
<td style="width: 16%">
<asp:DropDownList ID="ExchangeSite" runat="server"
DataSourceID="SqlDataSourceExchangeSite" DataTextField="exchange_site_name"
DataValueField="exchange_site_id" ondatabound="ExchangeSite_DataBound1"
AutoPostBack="True">
</asp:DropDownList>
</td>
</tr>

<tr>
<td >
<asp:Label ID="Label25" runat="server" Text="费用类型"></asp:Label>
</td>
<td >
<asp:DropDownList ID="FeeType" runat="server"
DataSourceID="SqlDataSourceFeeType" DataTextField="fee_type"
DataValueField="fee_type" ondatabound="FeeType_DataBound">
</asp:DropDownList>
</td>
<td >
<asp:Label ID="Label26" runat="server" Text="项目类型"></asp:Label>
</td>
<td >
<asp:DropDownList ID="FeeItemType" runat="server"
DataSourceID="SqlDataSourceFeeItemType" DataTextField="fee_item_type"
DataValueField="fee_item_type" ondatabound="FeeItemType_DataBound">
</asp:DropDownList>
</td>
<td >
<asp:Label ID="Label27" runat="server" Text="费用名称"></asp:Label>
</td>
<td >
<asp:DropDownList ID="FeeItemName" runat="server"
DataSourceID="SqlDataSourceFeeItemName" DataTextField="fee_item_name"
DataValueField="fee_item_name" ondatabound="FeeItemName_DataBound"
AutoPostBack="True">
</asp:DropDownList>
</td>
<td >
<asp:Label ID="Label23" runat="server" Text="报表项目类型"></asp:Label>
</td>
<td>
<asp:DropDownList ID="ReportItemType" runat="server"
DataSourceID="SqlDataSourceReportItemType"
DataTextField="hall_report_item_type"
DataValueField="hall_report_item_type"
ondatabound="ReportItemType_DataBound" AutoPostBack="True">
</asp:DropDownList>
</td>
</tr>

<tr>
<td colspan="2" >
<asp:Label ID="Label24" runat="server" Text="报表项目名称"></asp:Label>
</td>
<td colspan="2" >
<asp:DropDownList ID="ReportItemName" runat="server"
DataSourceID="SqlDataSourceReportItemName"
DataTextField="hall_report_item_name"
DataValueField="hall_report_item_name"
ondatabound="ReportItemName_DataBound" AutoPostBack="True">
</asp:DropDownList>
</td>
<td >
</td>
<td >
<asp:Button ID="ButtonQuery" runat="server" Text="报表查询" Width="90px"

onclientclick="return testReport();"
onclick="ButtonQuery_Click" />
</td>
<td>
</td>
<td >
<asp:Button ID="ButtonDetail" runat="server" onclick="ButtonDetail_Click"
Text="项目明细" />
</td>
</tr>

</table>

</div>



其中有按钮去打开另外一个iframe程序,执行完,就字体变大了
string v_location = "window.parent.b.location='shop_employee_day_fee_checkout_query.aspx?ReportDate=" + CRMExchangeDate.Text + "&ExchangeSite=" + ExchangeSite.Text + "&EmployeeID=" + EmployeeID.Text + "&Checked=" + Checked.Text + "&Verified=" +Verified.Text +"'";

Response.Write(" <script language=javascript>");

Response.Write(v_location);

Response.Write(" </script>");
...全文
255 12 打赏 收藏 转发到动态 举报
写回复
用AI写文章
12 条回复
切换为时间正序
请发表友善的回复…
发表回复
huming_h 2010-01-25
  • 打赏
  • 举报
回复
[Quote=引用 8 楼 xiaojing5202 的回复:]
Response.Write(" <script language=javascript>");  不能使用这个方法。
改成 Page.ClientScript.RegisterStartupScript(this.GetType(), "MyScript", myScript, true);这种方式就好了 。
[/Quote]
正解
hailiu123 2010-01-25
  • 打赏
  • 举报
回复
顶啊
jack15850798154 2010-01-25
  • 打赏
  • 举报
回复
学习中!!!帮顶。。。
yzf86211861 2010-01-25
  • 打赏
  • 举报
回复
很 明显是 样式 丢失,用了 什么 弹出对话框了吧.
静舞 2010-01-25
  • 打赏
  • 举报
回复
Response.Write(" <script language=javascript>"); 不能使用这个方法。
改成 Page.ClientScript.RegisterStartupScript(this.GetType(), "MyScript", myScript, true);这种方式就好了 。
fangyuantdy 2010-01-25
  • 打赏
  • 举报
回复
样式丢失了吧?
lcglvgn 2010-01-25
  • 打赏
  • 举报
回复
帮顶
sunck 2010-01-25
  • 打赏
  • 举报
回复
string v_location = "window.parent.b.location='hall_advanced_report_item_query.aspx?SubArea" + SubArea.Text + "&DateStart=" + DateStart.Text + "&DateEnd=" + DateEnd.Text + "&ExchangeSite=" + ExchangeSite.Text + "&FeeType=" + FeeType.Text
+"&FeeItemType="+FeeItemType.Text+"&FeeItemName="+FeeItemName.Text+"&ReportItemType="+ReportItemType.Text+"&ReportItemName=" +ReportItemName.Text+ "'";

string myScript = "<script language=javascript>" + v_location + "</script>";
Page.ClientScript.RegisterStartupScript(this.GetType(), "MyScript", myScript);

这个是标准答案
houdilzc 2010-01-25
  • 打赏
  • 举报
回复

string js = "<script language=javascript>alert(v_location);</script>";
Page.ClientScript.RegisterStartupScript(this.GetType(), "js", js);
mzjmicrosoft 2010-01-25
  • 打赏
  • 举报
回复
string myScript = @"alert('xxxxx')";
Page.ClientScript.RegisterStartupScript(this.GetType(), "MyScript", myScript, true);
soita 2010-01-25
  • 打赏
  • 举报
回复
样式有没有载入进来啊
xycit 2010-01-25
  • 打赏
  • 举报
回复
每日一顶!

62,254

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧