开发者

UpdatePanel misplaced buttons

开发者 https://www.devze.com 2023-02-13 01:18 出处:网络
I am开发者_开发知识库 using an update panel inside atag of a table using the code below. However, because of the update panel, the Log Story button appears on top of the remaining two buttons: reset a

I am开发者_开发知识库 using an update panel inside a tag of a table using the code below. However, because of the update panel, the Log Story button appears on top of the remaining two buttons: reset and cancel. This is probably an easy fix, so how can I align all buttons in one row? Thanks!

 <td colspan="2" align="right">
            <asp:UpdatePanel ID="UpdatePanel3" runat="server">
            <ContentTemplate>
            <asp:Button CssClass="button_style" id="btnSubmit" class="btn" Text="Log Story" runat="server" onClientClick="javascript:return validate();" Width="80px" />
            </ContentTemplate>
            </asp:UpdatePanel>
            <div style="display: none;">
                <asp:Button CssClass="button_style" id="Submit" class="btn" runat="server" OnClick="btnSubmit_Click" />
            </div>
                &nbsp;
            <asp:Button CssClass="button_style" id="btnReset" class="btn" Text="Reset" onClick="clear" runat="server" Width="70px" />
                &nbsp;
            <asp:Button CssClass="button_style" id="btnCancel" class="btn" Text="Cancel" onClick="cancel" runat="server" Width="70px" />
 </td> 


What about this?

<td colspan="2" align="right">
            <table>
<tr>
<td>
<asp:UpdatePanel ID="UpdatePanel3" runat="server">
            <ContentTemplate>
            <asp:Button CssClass="button_style" id="btnSubmit" class="btn" Text="Log Story" runat="server" onClientClick="javascript:return validate();" Width="80px" />
            </ContentTemplate>
            </asp:UpdatePanel>
</td>
</tr>

</table>
            <div style="display: none;">
                <asp:Button CssClass="button_style" id="Submit" class="btn" runat="server" OnClick="btnSubmit_Click" />
            </div>
                &nbsp;
            <asp:Button CssClass="button_style" id="btnReset" class="btn" Text="Reset" onClick="clear" runat="server" Width="70px" />
                &nbsp;
            <asp:Button CssClass="button_style" id="btnCancel" class="btn" Text="Cancel" onClick="cancel" runat="server" Width="70px" />
 </td>
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号