FineUI 官方论坛
标题:
simpleForm控件的Visible属性运行时无效
[打印本页]
作者:
anada/wx
时间:
2013-1-7 21:53
标题:
simpleForm控件的Visible属性运行时无效
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication1.WebForm1" %>
<%@ Register assembly="ExtAspNet" namespace="ExtAspNet" tagprefix="x" %>
<!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>
</head>
<body>
<form id="form1" runat="server">
<div>
<x
ageManager ID="
ageManager1" runat="server" AutoSizePanelID="Windows1" />
<x:ToolbarText ID="ToolbarText1" runat="server">
</x:ToolbarText>
<x:SimpleForm ID="SimpleForm2" runat="server" BodyPadding="5px"
EnableBackgroundColor="true" Title="SimpleForm" Visible="False">
</x:SimpleForm>
<x:Window ID="Window1" runat="server" EnableLargeHeader="True"
EnableLightBackgroundColor="True" EnableMaximize="True" EnableMinimize="True"
EnableResize="True" Height="350px" IsModal="true" Popup="true" Title="Window"
Width="500px" WindowPosition="GoldenSection">
<Items>
<x:SimpleForm ID="SimpleForm1" runat="server" BodyPadding="5px"
EnableBackgroundColor="True" Title="SimpleForm">
<Items>
<x:TextBox ID="TextBox1" runat="server" Label="Label">
</x:TextBox>
<x:TextBox ID="TextBox2" runat="server" Label="Label">
</x:TextBox>
</Items>
</x:SimpleForm>
<x:Button ID="Button1" runat="server" Text="Button">
</x:Button>
</Items>
</x:Window>
</div>
</form>
</body>
</html>
protected void Button1_Click(object sender, EventArgs e)
{
SimpleForm2.Visible = true;
}
测试的目的是想通过点击命令按钮来显示和隐藏simpleform2表单,但无效果。是否存在一个 BUG呢?
作者:
sanshi
时间:
2013-1-8 09:57
用hidden,visible属性在ajax过程中无效
欢迎光临 FineUI 官方论坛 (https://fineui.com/BBS/)
Powered by Discuz! X3.4