一个关于updatepanel的问题,哪位大侠提示下谢谢 我有一行文本框啊,标签什么的,我想放在一个table中,但是其中有一个在updatepanel这个标签里,第一次初始化页面的时候很好,显示在table的第一行,但是实现查询后那个格局就变了,那两个不再updatepanel的空间摆在左边去了。请哪位遇到过这类问题的帮忙提示下,谢谢 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 看一下这个呢http://zhidao.baidu.com/question/48044908.html不知道有没有帮助 http://hi.baidu.com/honfei/blog/item/7bada2c78c88ecd9d0006078.html 我就大概写下,太长了我怕你们看的心烦<asp:table> 这里有button、label <asp:UpdatePanel> 这里有个textbox</asp:table> </asp:UpdatePanel>我就像textbox和button、label在一行,第一次初始化的时候是在一行,而且顶头后面的时候button、label就跑到左边去了,而且不是第一行。那个 textbox仍然在第一行 有tr和td标签吗?<asp:TableRow><asp:TableCell></asp:TableCell><asp:TableCell></asp:TableCell></asp:TableRow>这种布局问题你不贴全了怎么帮你啊。。 <form id="form1" runat="server"> <div style="height: 650px"> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <asp:DropDownList ID="dateselect" runat="server" onselectedindexchanged="dataSelectedIndexChanged" AutoPostBack="true"> <asp:ListItem Text="日查询" selected="True" Value="0"/> <asp:ListItem Text="月查询" Selected="false" Value="1"/> <asp:ListItem Text="年查询" Selected="false" Value="2"/> </asp:DropDownList> <asp:DropDownList ID="typeselect" runat="server" onselectedindexchanged="typeSelectedIndexChanged" AutoPostBack="true"> <asp:Listitem Text="曲线图" Value="0" Selected="True"/> <asp:ListItem Text="柱状图" Value="1" Selected="False"/> </asp:DropDownList> <asp:UpdatePanel ID="UpdatePanel1" runat="server" RenderMode="Inline"> <ContentTemplate> <asp:Label ID="selectstarttime" runat="server" Font-Bold="True" Font-Size="X-Small" Text="请选择时间"></asp:Label> <asp:TextBox ID="textbox1" runat="server" Enabled="False" Width="85"></asp:TextBox> <asp:Image ID="Image1" runat="server" src="Images/calendar.gif" onclick="popUpCalendar(this,document.forms[0].textbox1,'yyyy-mm-dd')" /> <asp:Button ID="refer" runat="server" Text="提交" onclick="refer_Click" /> 想在此之前把所有标签弄在table的第一行中 <asp:Chart ID="Chart1" runat="server" Height="429px" ImageLocation="~/WebCharts/f9a710e6-abc4-4169-b5df-6c9df9cb723b.Png" ImageStorageMode="UseImageLocation" style="margin-top: 30px; margin-left: 22px;" Width="475px" BackImageAlignment="Center"> <BorderSkin SkinStyle="FrameThin1" BackGradientStyle="None" BorderWidth="0" PageColor="White" BackColor="#CCCCCC" BackImageAlignment="TopLeft"> </BorderSkin> <Series> <asp:Series Name="Low"> </asp:Series> <asp:Series ChartArea="ChartArea1" Name="High"> </asp:Series> <asp:Series ChartArea="ChartArea1" Name="Middle"> </asp:Series> <asp:Series Name="Monitor"> </asp:Series> </Series> <ChartAreas> <asp:ChartArea Name="ChartArea1"> </asp:ChartArea> </ChartAreas> </asp:Chart> <br /> <asp:Button ID="Up" runat="server" Text="上一页" onclick="Up_Click" /> <asp:Button ID="Previous" runat="server" onclick="Previous_Click" Text="上一个" /> <asp:Button ID="Next" runat="server" onclick="Next_Click" Text="下一个" /> <asp:Button ID="Down" runat="server" onclick="Down_Click" Text="下一页" /> </ContentTemplate> </asp:UpdatePanel> 由于不行,我就把<asp:table><tr></tr></asp:table>删掉了。 <form id="form1" runat="server"> <div style="height: 650px"> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <asp:DropDownList ID="dateselect" runat="server" OnSelectedIndexChanged="dataSelectedIndexChanged" AutoPostBack="true"> <asp:ListItem Text="日查询" Selected="True" Value="0" /> <asp:ListItem Text="月查询" Selected="false" Value="1" /> <asp:ListItem Text="年查询" Selected="false" Value="2" /> </asp:DropDownList> <asp:DropDownList ID="typeselect" runat="server" OnSelectedIndexChanged="typeSelectedIndexChanged" AutoPostBack="true"> <asp:ListItem Text="曲线图" Value="0" Selected="True" /> <asp:ListItem Text="柱状图" Value="1" Selected="False" /> </asp:DropDownList> <asp:UpdatePanel ID="UpdatePanel1" runat="server" RenderMode="Inline"> <ContentTemplate> <asp:Table runat="server"> <asp:TableRow runat="server"> <asp:TableCell runat="server"> <asp:Label ID="selectstarttime" runat="server" Font-Bold="True" Font-Size="X-Small" Text="请选择时间"></asp:Label> <asp:TextBox ID="textbox1" runat="server" Enabled="False" Width="85"> </asp:TextBox> <asp:Image ID="Image1" runat="server" src="Images/calendar.gif" onclick="popUpCalendar(this,document.forms[0].textbox1,'yyyy-mm-dd')" /> <asp:Button ID="refer" runat="server" Text="提交" OnClick="refer_Click" /> <%-- 想在此之前把所有标签弄在table的第一行中--%> <asp:Chart ID="Chart1" runat="server" Height="429px" ImageLocation="~/WebCharts/f9a710e6-abc4-4169-b5df-6c9df9cb723b.Png" ImageStorageMode="UseImageLocation" style="margin-top: 30px; margin-left: 22px;" Width="475px" BackImageAlignment="Center"> <borderskin skinstyle="FrameThin1" backgradientstyle="None" borderwidth="0" pagecolor="White" backcolor="#CCCCCC" backimagealignment="TopLeft"> </borderskin> <series> <asp:Series Name="Low"> </asp:Series> <asp:Series ChartArea="ChartArea1" Name="High"> </asp:Series> <asp:Series ChartArea="ChartArea1" Name="Middle"> </asp:Series> <asp:Series Name="Monitor"> </asp:Series> </series> <chartareas> <asp:ChartArea Name="ChartArea1"> </asp:ChartArea> </chartareas> </asp:Chart> </asp:TableCell> </asp:TableRow> <asp:TableRow ID="TableRow1" runat="server"> <asp:TableCell ID="TableCell1" runat="server"> <asp:Button ID="Up" runat="server" Text="上一页" OnClick="Up_Click" /> <asp:Button ID="Previous" runat="server" OnClick="Previous_Click" Text="上一个" /> <asp:Button ID="Next" runat="server" OnClick="Next_Click" Text="下一个" /> <asp:Button ID="Down" runat="server" OnClick="Down_Click" Text="下一页" /> </asp:TableCell> </asp:TableRow> </asp:Table> </ContentTemplate> </asp:UpdatePanel> </div> </form> 那上面的两个dropdownlist怎么办列?还不是没有加到table 里面啊 碰到了SQL注入与提交事件冲突 网站里要做个短信发送功能。 急需 如何在过程外部获取过程的进度状态? DataGrid中分页编辑的问题 大家帮忙看看,这个有必要么?(连接池) 数据库树形结构绑定TreeView 算法 C#中如何捕获一个Cookies是否为null? (在线等待)我在Page_Load中把从数据库提出的数据付给textbox,但是在textbox修改后再提交按钮,但是返回的还是原来的数据 asp.net和html前后台传值 高人速来帮忙!Gridview绑定列更新 一个反射的问题(全部家当),thank
这里有button、label
<asp:UpdatePanel>
这里有个textbox
</asp:table>
</asp:UpdatePanel>我就像textbox和button、label在一行,
第一次初始化的时候是在一行,而且顶头
后面的时候button、label就跑到左边去了,而且不是第一行。那个 textbox仍然在第一行
<asp:TableRow>
<asp:TableCell>
</asp:TableCell>
<asp:TableCell>
</asp:TableCell>
</asp:TableRow>
这种布局问题你不贴全了怎么帮你啊。。
<div style="height: 650px">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:DropDownList ID="dateselect" runat="server"
onselectedindexchanged="dataSelectedIndexChanged" AutoPostBack="true">
<asp:ListItem Text="日查询" selected="True" Value="0"/>
<asp:ListItem Text="月查询" Selected="false" Value="1"/>
<asp:ListItem Text="年查询" Selected="false" Value="2"/>
</asp:DropDownList>
<asp:DropDownList ID="typeselect" runat="server"
onselectedindexchanged="typeSelectedIndexChanged" AutoPostBack="true">
<asp:Listitem Text="曲线图" Value="0" Selected="True"/>
<asp:ListItem Text="柱状图" Value="1" Selected="False"/>
</asp:DropDownList>
<asp:UpdatePanel ID="UpdatePanel1" runat="server" RenderMode="Inline">
<ContentTemplate>
<asp:Label ID="selectstarttime" runat="server" Font-Bold="True"
Font-Size="X-Small" Text="请选择时间"></asp:Label>
<asp:TextBox ID="textbox1" runat="server" Enabled="False" Width="85"></asp:TextBox>
<asp:Image ID="Image1" runat="server" src="Images/calendar.gif" onclick="popUpCalendar(this,document.forms[0].textbox1,'yyyy-mm-dd')" />
<asp:Button ID="refer" runat="server" Text="提交" onclick="refer_Click" />
想在此之前把所有标签弄在table的第一行中
<asp:Chart ID="Chart1" runat="server" Height="429px"
ImageLocation="~/WebCharts/f9a710e6-abc4-4169-b5df-6c9df9cb723b.Png"
ImageStorageMode="UseImageLocation"
style="margin-top: 30px; margin-left: 22px;" Width="475px"
BackImageAlignment="Center">
<BorderSkin SkinStyle="FrameThin1" BackGradientStyle="None" BorderWidth="0" PageColor="White" BackColor="#CCCCCC" BackImageAlignment="TopLeft">
</BorderSkin>
<Series>
<asp:Series Name="Low">
</asp:Series>
<asp:Series ChartArea="ChartArea1" Name="High">
</asp:Series>
<asp:Series ChartArea="ChartArea1" Name="Middle">
</asp:Series>
<asp:Series Name="Monitor">
</asp:Series>
</Series>
<ChartAreas>
<asp:ChartArea Name="ChartArea1">
</asp:ChartArea>
</ChartAreas>
</asp:Chart>
<br />
<asp:Button ID="Up" runat="server" Text="上一页" onclick="Up_Click" />
<asp:Button ID="Previous" runat="server" onclick="Previous_Click"
Text="上一个" />
<asp:Button ID="Next" runat="server" onclick="Next_Click" Text="下一个" />
<asp:Button ID="Down" runat="server" onclick="Down_Click" Text="下一页" />
</ContentTemplate>
</asp:UpdatePanel>
<div style="height: 650px">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:DropDownList ID="dateselect" runat="server" OnSelectedIndexChanged="dataSelectedIndexChanged"
AutoPostBack="true">
<asp:ListItem Text="日查询" Selected="True" Value="0" />
<asp:ListItem Text="月查询" Selected="false" Value="1" />
<asp:ListItem Text="年查询" Selected="false" Value="2" />
</asp:DropDownList>
<asp:DropDownList ID="typeselect" runat="server" OnSelectedIndexChanged="typeSelectedIndexChanged"
AutoPostBack="true">
<asp:ListItem Text="曲线图" Value="0" Selected="True" />
<asp:ListItem Text="柱状图" Value="1" Selected="False" />
</asp:DropDownList>
<asp:UpdatePanel ID="UpdatePanel1" runat="server" RenderMode="Inline">
<ContentTemplate>
<asp:Table runat="server">
<asp:TableRow runat="server">
<asp:TableCell runat="server">
<asp:Label ID="selectstarttime" runat="server" Font-Bold="True" Font-Size="X-Small"
Text="请选择时间"></asp:Label>
<asp:TextBox ID="textbox1" runat="server" Enabled="False" Width="85">
</asp:TextBox>
<asp:Image ID="Image1" runat="server" src="Images/calendar.gif" onclick="popUpCalendar(this,document.forms[0].textbox1,'yyyy-mm-dd')" />
<asp:Button ID="refer" runat="server" Text="提交" OnClick="refer_Click" />
<%-- 想在此之前把所有标签弄在table的第一行中--%>
<asp:Chart ID="Chart1" runat="server" Height="429px" ImageLocation="~/WebCharts/f9a710e6-abc4-4169-b5df-6c9df9cb723b.Png"
ImageStorageMode="UseImageLocation" style="margin-top: 30px; margin-left: 22px;"
Width="475px" BackImageAlignment="Center">
<borderskin skinstyle="FrameThin1" backgradientstyle="None" borderwidth="0" pagecolor="White"
backcolor="#CCCCCC" backimagealignment="TopLeft">
</borderskin>
<series>
<asp:Series Name="Low">
</asp:Series>
<asp:Series ChartArea="ChartArea1" Name="High">
</asp:Series>
<asp:Series ChartArea="ChartArea1" Name="Middle">
</asp:Series>
<asp:Series Name="Monitor">
</asp:Series>
</series>
<chartareas>
<asp:ChartArea Name="ChartArea1">
</asp:ChartArea>
</chartareas>
</asp:Chart>
</asp:TableCell>
</asp:TableRow>
<asp:TableRow ID="TableRow1" runat="server">
<asp:TableCell ID="TableCell1" runat="server">
<asp:Button ID="Up" runat="server" Text="上一页" OnClick="Up_Click" />
<asp:Button ID="Previous" runat="server" OnClick="Previous_Click" Text="上一个" />
<asp:Button ID="Next" runat="server" OnClick="Next_Click" Text="下一个" />
<asp:Button ID="Down" runat="server" OnClick="Down_Click" Text="下一页" />
</asp:TableCell>
</asp:TableRow>
</asp:Table>
</ContentTemplate>
</asp:UpdatePanel>
</div>
</form>