Click here to Skip to main content
15,912,400 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am creating an order page. If customer is existing then insert only name that will fetch information and display in name address and phone textbox.
If customer is new then I want to display three textboxes, name, address and phone.

Iwant them invisible when customer makes an order but if customer is new then click on new button and display these textboxes.

Problem is that when I am adding these textboxes in form page then all textboxes shifted to below.

I want two tables in parellel. Inside one table I will put new button and other table put these textbox for new customer.

Give me what html tag use for two table side by side.

Thanks
Posted
Updated 26-Nov-17 19:37pm
v2
Comments
Abhinav S 22-Oct-10 1:55am    
What have you tried so far? Have you run into any errors or problems?
call to .net 22-Oct-10 2:47am    
here i want to just create two table side by side and both table have same textbox and label.
Dalek Dave 22-Oct-10 3:27am    
Edited for Grammar, Syntax and Readability.

This may help you
<div id="div1" width="100%">
    <table width="30%" align="left" border="1px">
    <tr><td colspan="3">
        <asp:Button ID="Button1" runat="server" Text="Button" />
    </td>
    </tr>
    </table>
    <table width="80%" align="right"  border="1px">
    <tr><td>
        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
    </td><td>
        <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
    </td>
    <td>
        <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
    </td></tr>
    </table>
    </div>
 
Share this answer
 
Comments
call to .net 22-Oct-10 2:14am    
thanks but i do't want like that
actually i have one table inside of that i have created three where using three label and textbox for existing customer when type name of existing customer display all detail in these column otherwise click on new button then display table for new customer entry.
m@dhu 22-Oct-10 3:05am    
I just gave you an example. As i understood you want to display labels for existing customers and textboxs for the new customers right?
.table_left {
     float:left;
}

.table_right {
     float:right;
}
 
Share this answer
 
Comments
phil.o 27-Nov-17 1:50am    
More than seven years after, I hope he solved his issue already...
Please do not dig up old topics, there are enough new ones to be answered.

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