DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2006
    Location
    PA
    Posts
    259

    I need to move my controls into table cells

    okay , I have this ASP.net project to do and I'm all done except I should make my project look like the example thats on a peice of paper. So I'm not sure if it is a table I'm looking at with controls inside the cells but it looks like a table.

    My question is , how can I make a table or something that looks like a table , and have the controls inside the cells ( or borders that look like table cells) in visual studio.net ?

  2. #2
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    In Visual Studio, view your Web page in HTML view (click the "HTML" tab in the lower-left corner of VS.NET). Insert the HTML tags for a table, e.g.:
    Code:
    <table>
        <tr>
            <td></td>
            <td></td>
        </tr>
    </table>
    Then simply put your <asp: ...> controls inside the table cells (between the <td> tags):
    Code:
    <table>
        <tr>
            <td><asp:TextBox id="txtBox" runat="server" /></td>
            <td></td>
        </tr>
    </table>
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

Similar Threads

  1. Replies: 2
    Last Post: 08-01-2005, 03:12 PM
  2. BOND CONTROLS vs. UNBOND CONTROLS
    By saly in forum VB Classic
    Replies: 12
    Last Post: 02-01-2003, 11:27 PM
  3. How to Move record in ADO.NET table !
    By vnkh in forum ASP.NET
    Replies: 1
    Last Post: 05-24-2002, 09:04 AM
  4. New table rows with controls
    By Neel in forum ASP.NET
    Replies: 0
    Last Post: 05-22-2002, 09:34 PM
  5. Programmatically accessing table cells
    By Mike in forum ASP.NET
    Replies: 1
    Last Post: 04-02-2002, 05:36 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links