Aligning .aspx buttons

parker123112

New Member
I have an update panel that contains a label, a dropDownList and two buttons:\[code\] <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional"> <ContentTemplate> <div id="dropDownList" style="position:relative;" runat="server"> <label> Select New File: </label> <div id="ddl" runat="server"> <asp:DropDownList runat="server" ID="ddlCaseFiles" DataSourceID="dsMyCaseFiles" DataTextField="Display" DataValueField="FileID" OnPreRender="ddl_PreRender" Width="524px" OnSelectedIndexChanged="ddlCaseFiles_SelectedIndexChanged" /> <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="ddlCaseFiles" ToolTip="Casefile Required" InitialValue="http://stackoverflow.com/questions/12802834/-1" Text="*" Display="Dynamic" /> <ajaxToolkit:ListSearchExtender ID="ddlExtCaseFiles" runat="server" PromptCssClass="ListSearchExtenderPrompt" TargetControlID="ddlCaseFiles" BehaviorID="ddlExtCaseFiles" Enabled="True" /> </div> <br /> <asp:Button ID="btnMoveCaseFile" runat="server" Text="" style="float:left;" onclick="btnMoveCaseFile_Click"/> <asp:Button ID="btnCancel" runat="server" Text="Cancel" style="float:right" onclick="btnCancel_Click"/> <br /> </div> <asp:Label runat="server" ID="lblStatus"></asp:Label> </ContentTemplate>\[/code\]I am trying to get my buttons to line up like this:(button at the beginning of the DropDownList and a button at the End)
oIOZA.png
I've tried float-absolute etc.
 
Back
Top