Click here to Skip to main content
15,878,748 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have 2 buttons and a textbox and I want to display them all on same line inside my td

I added this but it didn't work any ideas:

<td style="margin-removed 40px; display:block;">
    <asp:ImageButton ID="btndate" runat="server" Height="15px" ImageUrl="~/images/blue-left-arrow.png" Width="25px" />
    <asp:UpdatePanel runat="server" ID="UpdatePanel2" ChildrenAsTriggers="true">
        <ContentTemplate>
            <asp:TextBox ID="date_" runat="server" TextMode="DateTime" Width="80px"></asp:TextBox>
            <asp:ImageButton runat="Server" ID="ImageButton3" ImageUrl="~/images/ico_calendar.gif" AlternateText="Click here to display calendar" />
            <cc1:CalendarExtender ID="CalendarExtender3"  runat="server" TargetControlID="date_" PopupButtonID="ImageButton3" Format="dd/MM/yyyy" TodaysDateFormat="dd/MM/yyyy"></cc1:CalendarExtender>
        </ContentTemplate>
    <triggers>
        <asp:AsyncPostBackTrigger ControlID="btndate" EventName="Click" />
        <asp:AsyncPostBackTrigger ControlID="btndate" EventName="Click" />
    </triggers>
    </asp:UpdatePanel>
    <asp:ImageButton ID="btndate" runat="server" Height="15px" ImageUrl="~/images/blue-right-arrow.png" Width="25px" />
</td>
Posted
Updated 7-Nov-13 23:44pm
v2
Comments
Thanks7872 8-Nov-13 4:29am    
Don't do any thing,put them one after another. They will be displayed in order you defined by default.
[no name] 8-Nov-13 5:44am    
Check Updated Question
Post the whole code of that td containing all the controls.
[no name] 8-Nov-13 5:44am    
Check Updated Question
JoCodes 8-Nov-13 5:53am    
Check it by removing the CalendarExtender control to see whether its due that.

1 solution

In you main
HTML
<td>
style put Float:left
if it dosn't work put Float:left in each controls style attribute either by class or directly
as controls are accepting styling.

Hope it helps!!!
 
Share this answer
 
v2
Comments
[no name] 8-Nov-13 6:28am    
Placing style="Float:left;" in each control solve it. Thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900