FineUI 官方论坛
标题:
老大进来帮我看看。一个关于Window控件的问题!
[打印本页]
作者:
猪八戒
时间:
2012-8-31 16:33
标题:
老大进来帮我看看。一个关于Window控件的问题!
本帖最后由 猪八戒 于 2012-9-1 23:57 编辑
这是示例代码中登陆模块。把这个弹出窗口改成最上层(Target="Top">)就无法获取到里面TextBox 的值。
<html xmlns="
http://www.w3.org/1999/xhtml
">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<ext
ageManager ID="
ageManager1" runat="server"/>
<ext:Window ID="Window1" Title="系统登录" runat="server" IsModal="true" Width="350px" WindowPosition="GoldenSection" EnableClose="false" Target="Top">
<Items>
<ext:SimpleForm ID="SimpleForm1" runat="server" ShowBorder="false" BodyPadding="10px" LabelWidth="60px" EnableBackgroundColor="true" ShowHeader="false">
<Items>
<ext:TextBox ID="tbxUserName" Label="用户名" Required="true" runat="server">
</ext:TextBox>
<ext:TextBox ID="tbxPassword" Label="密码" TextMode="
assword" Required="true" runat="server">
</ext:TextBox>
<ext:Button ID="btnLogin" Text="登录" Type="Submit" ValidateForms="SimpleForm1" ValidateTarget="Top" runat="server">
</ext:Button>
</Items>
</ext:SimpleForm>
</Items>
</ext:Window>
</form>
</body>
</html>
protected void btnLogin_Click(object sender, EventArgs e)
{
if (Login(tbxUserName.Text, tbxPassword.Text))
{
Alert.ShowInTop("登陆成功!", MessageBoxIcon.Error);
}
else
{
Alert.ShowInTop("用户名或密码错误!", MessageBoxIcon.Error);
}
}
点击按钮,查看两个TextBox的值都是空("")。这是怎么回事?要怎么才能获取到控件的值!
作者:
飞~~
时间:
2012-9-5 10:15
我也碰到同样的问题,而且还发现如果设为Target="Top"后,验证提醒的弹出窗口不显示出来了,显示Window的后层
欢迎光临 FineUI 官方论坛 (https://fineui.com/BBS/)
Powered by Discuz! X3.4