FineUI 官方论坛
标题:
这个页面那个地方 导致page_load 二次触发
[打印本页]
作者:
god74
时间:
2016-1-29 16:56
标题:
这个页面那个地方 导致page_load 二次触发
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebShell.Default" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>系统登录</title>
<style>
.bg-blue {
background: url(res/images/login/bg.jpg) no-repeat fixed;
background-size: 100% 100%;
}
a{color:#474747; text-decoration: none;}
a:hover, a:focus {
color: #333;
text-decoration: none;
}
</style>
</head>
<body class="bg-blue">
<form id="form1" runat="server" >
<f:PageManager ID="PageManager1" runat="server" />
<f:Window ID="Window1" runat="server" Title="登录表单" IsModal="false" EnableClose="false" WindowPosition="GoldenSection" Width="420px" EnableFrame="false" >
<Items>
<f:SimpleForm ID="SimpleForm1" runat="server" ShowBorder="false" BodyPadding="10px" LabelWidth="60px" ShowHeader="false" Layout="HBox" >
<Items>
<f:Panel ID="Panel2" runat="server" ShowBorder="false" ShowHeader="false" Width="90px">
<Items>
<f:Image ID="Image1" runat="server" ImageUrl="res\images\login\login_6.png" ShowLabel="False" ImageHeight="90px" ImageWidth="90px"></f:Image>
</Items>
</f:Panel>
<f:Panel ID="Panel1" runat="server" ShowBorder="false" ShowHeader="false" BodyPadding="10px" >
<Items>
<f:TextBox ID="tbLogin" Label="用户名" Required="true" runat="server" Width="250px" NextFocusControl="tbPassword" FocusOnPageLoad="True">
</f:TextBox>
<f:TextBox ID="tbPassword" Label="密码" TextMode="Password" Required="true" runat="server" Width="250px" NextFocusControl="tbCaptcha">
</f:TextBox>
<f:Panel ShowBorder="false" ShowHeader="false" runat="server" BodyPadding="0px" Layout="Column" Width="310px" Height="30px">
<Items>
<f:TextBox ID="tbCaptcha" Label="验证码" Required="true" runat="server" ColumnWidth="50%" NextFocusControl="btnLogin">
</f:TextBox>
<f:Image ID="imgCaptcha" runat="server" ShowLabel="False" ColumnWidth="30%" CssStyle="float:left;margin-top:-5px;margin-left:2px" >
</f:Image>
<f:LinkButton ID="btnRefresh" Text="刷新" runat="server" OnClick="btnRefresh_Click" ShowLabel="False" ColumnWidth="20%" CssStyle="float:left;margin-left:2px">
</f:LinkButton>
</Items>
</f:Panel>
</Items>
</f:Panel>
</Items>
</f:SimpleForm>
</Items>
<Toolbars>
<f:Toolbar ID="Toolbar1" runat="server" Position="Bottom" ToolbarAlign="Right">
<Items>
<f:Button ID="btnLogin" Text="登录" Type="Submit" ValidateForms="SimpleForm1" ValidateTarget="Top"
runat="server" OnClick="btnLogin_Click">
</f:Button>
<f:Label ID="lblCheckCode" runat="server" Hidden="True" Label="Label" ShowLabel="False" Text="0">
</f:Label>
</Items>
</f:Toolbar>
</Toolbars>
</f:Window>
</form>
</body>
</html>
复制代码
麻烦大神看看 排查了一天 不知道这个界面 什么地方用FINEUI控件 引起回发 导致page_load执行了 两次。
作者:
sanshi
时间:
2016-1-29 20:55
这个页面很正常,没发现问题。请基于空项目,看能否重现问题
欢迎光临 FineUI 官方论坛 (https://fineui.com/BBS/)
Powered by Discuz! X3.4