我在ContentPanel外面用了<xropDownList>,ContentPanel内部用了<asp:Button> 当button事件触发后,页面一片空白。
跟踪代码发现,外部的<xropDownList>中原先绑定的值都空了。
这是要做什么设置,还是bug。整个页面的代码如下,关键的地方我截图几个图
<xageManager ID="ageManager1" AutoSizePanelID="anel1" runat="server" FormLabelWidth="60px" FormOffsetRight="5px"/>
<xanel ID="anel1" runat="server" BodyPadding="5px" EnableLargeHeader="false" EnableBackgroundColor="true"
ShowBorder="false" Layout="VBox" BoxConfigAlign="Stretch" BoxConfigPosition="Start"
ShowHeader="false" Title="照片管理">
<Items>
<x:Form ID="Form2" runat="server" Height="36px" BodyPadding="5px" ShowHeader="false"
ShowBorder="false" LabelAlign="Right" EnableBackgroundColor="true">
<Rows>
<x:FormRow ID="FormRow1" runat="server" >
<Items>
<xropDownList ID="ddlXian" AutoPostBack="true" OnSelectedIndexChanged="ddlXian_SelectedIndexChanged"
Label="单位" DataTextField="XianName" DataValueField="XianID" runat="server">
</xropDownList>
<xropDownList ID="ddlDept" AutoPostBack="true" OnSelectedIndexChanged="ddlDept_SelectedIndexChanged"
Label="部门" DataTextField="CunName" DataValueField="CunID" runat="server">
</xropDownList>
<xropDownList ID="ddlHuliny" runat="server" Label="人员" DataTextField="HulinyName"
DataValueField="HulinyId">
</xropDownList>
<x:TextBox ID="tbName" runat="server" Label="姓名" >
</x:TextBox>
<xatePicker runat="server" Label="开始时间" EmptyText="请选择日期" ID="tbStartDate" >
</xatePicker>
<x:DatePicker runat="server" Label="结束时间" EmptyText="请选择日期" ID="tbEndDate" >
</x:DatePicker>
<x:Button runat="server" ID="btnSearch" Text="搜索" EnablePostBack="true">
</x:Button>
</Items>
</x:FormRow>
</Rows>
</x:Form>
<x:ContentPanel ShowBorder="false" ShowHeader="false" EnableBackgroundColor="true"
ID="ContentPanel1" runat="server">
<div class="wrap">
<div class="con" id="divList">
<asp:Repeater runat="server" ID="rpList">
<ItemTemplate>
<div class="wrap_tab" id="item">
<input type="text" id="tbDirect" runat="server" value='<%#DataBinder.Eval(Container.DataItem, "Direct")%>'
style="display: none" />
<aspabel runat="server" ID="lbTerminalId" Text='<%#DataBinder.Eval(Container.DataItem, "TerminalId") %>'
Style="display: none"></aspabel>
<aspabel runat="server" ID="lbCreateTime" Text='<%#DataBinder.Eval(Container.DataItem, "CreateTime")%>'
Style="display: none"></aspabel>
<aspabel runat="server" ID="lbDirect" Text='<%#DataBinder.Eval(Container.DataItem, "Direct")%>'
Style="display: none"></aspabel>
<aspabel runat="server" ID="lbRemark" Text='<%#DataBinder.Eval(Container.DataItem, "Remark")%>'
Style="display: none"></aspabel>
<table width="100%">
<tr>
<td colspan="2">
<div class="turn">
<input type="button" class="btnLeft" id="btnLeft" />
<input type="button" class="btnRight" id="btnRight" />
</div>
</td>
</tr>
<tr>
<td align="center" valign="middle" width="166">
<div class="wrap_pic bh-fl">
<table width="166">
<tr>
<td align="center" valign="middle">
<img id="imgPic"CreateTime")%>','<%#DataBinder.Eval(Container.DataItem, "TerminalId") %>','<%#DataBinder.Eval(Container.DataItem, "ClassID") %>','<%#DataBinder.Eval(Container.DataItem, "Direct")%>')"
src='<%# PicUrl(DataBinder.Eval(Container.DataItem, "CreateTime"),DataBinder.Eval(Container.DataItem, "TerminalId"),DataBinder.Eval(Container.DataItem, "classID")) %>'
width="120px" height="100px" style="border: 0" />
</td>
</tr>
</table>
</div>
</td>
<td>
<div>
姓 名:<%#DataBinder.Eval(Container.DataItem, "huliny_name")%></div>
<div>
手机号:<%#DataBinder.Eval(Container.DataItem, "TerminalId") %></div>
<div>
时 间:<%# GetDateTimeString(DataBinder.Eval(Container.DataItem, "CreateTime").ToString())%></div>
<div>
备 注:
<asp:TextBox runat="server" ID="txtRemark" TextMode="MultiLine" Width="120px" Height="80px"
Text='<%#DataBinder.Eval(Container.DataItem, "Remark")%>'></asp:TextBox>
</div>
</td>
</tr>
<tr>
<td colspan="2">
<div class="save">
<span class="bh-fl">
<asp:Button runat="server" ID="btnDeal" CommandName="Del" CssClass="btnDel" />
</span><span class="bh-fr">
<asp:Button runat="server" ID="btnSave" CommandName="Save" CssClass="btnSave" /></span>
</span></div>
</td>
</tr>
</table>
</div>
</ItemTemplate>
</asp:Repeater>
</div>
<div style="padding-right: 200px">
<webdiyer:AspNetPager ID="AspNetPager1" runat="server"
Width="100%" UrlPaging="false" HorizontalAlign="right" PageSize="9" EnableTheming="true">
</webdiyer:AspNetPager>
</div>
</div>
</x:ContentPanel>
</Items>
</xanel>
|