FineUI 官方论坛
标题:
【请基于空项目重现】保持lable的TEXT值
[打印本页]
作者:
wangyibo1234
时间:
2018-2-8 09:27
标题:
【请基于空项目重现】保持lable的TEXT值
<f:Grid ID="Grid1" EnableCollapse="true" ShowBorder="true" EnableTextSelection="true" ShowHeader="false" EmptyText="没有检索出数据!"
runat="server" EnableBigData="true" >
<Toolbars>
<f:Toolbar ID="Toolbar1" runat="server">
<Items>
<f
atePicker runat="server" Required="true" DateFormatString="yyyy-MM-dd" Label="开始日期" EmptyText="请选择开始日期"
ID="lab_sstartrq" ShowRedStar="True" Width="200px">
</f
atePicker>
<f
atePicker ID="lab_eendrq" Required="true" Readonly="false" CompareControl="DatePicker1" DateFormatString="yyyy-MM-dd"
CompareOperator="GreaterThan" CompareMessage="结束日期应该大于开始日期" Label="结束日期"
runat="server" ShowRedStar="True" Width="200px">
</f
atePicker>
<f:TriggerBox ID="tbxMyBox1" ShowLabel="false" Readonly="false" TriggerIcon="Search"
EmptyText="" runat="server" Width="120px">
</f:TriggerBox>
<f:Button ID="Button1" EnableAjax="false" DisableControlBeforePostBack="false"
runat="server" Text="查 询" Icon="ApplicationOsxGo" Width="80px">
</f:Button>
<f:Button ID="Button2" EnableAjax="false" DisableControlBeforePostBack="false"
runat="server" Text="导出为Excel" Width="100px">
</f:Button>
</Items>
</f:Toolbar>
<f:Toolbar ID="Toolbar2" runat="server" >
<Items>
<f
abel ID="tbxMymchkBox1" runat="server" Label="商品名称" > </f
abel>
<f
abel ID="tbxMyshpggBox1" runat="server" Label="商品规格" > </f
abel>
<f
abel ID="tbxMysccjBox1" runat="server" Label="生产厂家" > </f
abel>
</Items>
</f:Toolbar>
</Toolbars>
<Columns>
<f:RowNumberField></f:RowNumberField>
<f:BoundField Width="100px" DataField="rq" HeaderText="日期" />
</Columns>
</f:Grid>
protected void Buttoncx_Click(object sender, EventArgs e)
{
Grid1.DataSource = null;
string ks_rq = lab_sstartrq.SelectedDate.Value.ToString("yyyy-MM-dd");
string js_rq = lab_eendrq.SelectedDate.Value.ToString("yyyy-MM-dd");
DataTable dt = new CategoryDAO().getuserxs(usersession, ks_rq, js_rq);
Grid1.DataSource = dt;
Grid1.DataBind();
}
protected void tbxMyBox1_TriggerClick(object sender, EventArgs e)
{
// Window1.Hidden = false;
string openUrl = String.Format("./spxz.aspx?selected={0}", HttpUtility.UrlEncode(tbxMyBox1.Text));
string[] xc = { tbspbh.ClientID,tbxMyBox1.ClientID, tbxMymchkBox1.ClientID, tbxMyshpggBox1.ClientID, tbxMysccjBox1.ClientID};
PageContext.RegisterStartupScript(Window1.GetSaveStateReference(xc)
+ Window1.GetShowReference(openUrl));
}
点击执行 Buttoncx_Click 事件后
<f
abel ID="tbxMymchkBox1" runat="server" Label="商品名称" > </f
abel>
<f
abel ID="tbxMyshpggBox1" runat="server" Label="商品规格" > </f
abel>
<f:Label ID="tbxMysccjBox1" runat="server" Label="生产厂家" > </f:Label>
这三个LABE的TEXT 直接补清空了
作者:
sanshi
时间:
2018-2-9 15:59
我测试过了,没发现这个问题。
请基于空项目重现问题,保证VS打开后直接运行
欢迎光临 FineUI 官方论坛 (https://fineui.com/bbs/)
Powered by Discuz! X3.4