Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: html/asp Table

  1. #1
    New to the CF scene
    Join Date
    Jan 2013
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    html/asp Table

    Hi All, I am new to asp.net and in the process of creating a webpage.

    I need to create a table in the code behind to display a string and an integer value( in the form of progress bar) in a table.

    Job Progress

    job1 progress bar........ 20%
    job2 progress bar....... 30% etc

    I have managed to create this using a function
    [code]
    StringBuilder DisplayProgress() {

    StringBuilder str = new StringBuilder;

    str.Append("<table><tr><td>>..") etc



    }

    In the webpage

    <div runat="server" id="ProgressTable"><%=DisplayProgress() %></div>


    [code]

    My question here is
    1. Is this the efficient way to create a table...or should i use <asp:table>, or using Table class.
    2. Will there be any set back using it this way?

    Thanks
    DP

  • #2
    New to the CF scene
    Join Date
    Mar 2013
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    yes this is efficient and .net has its own optimization techniques which are in background while compiling to msil code and then when it is interpreted.

  • #3
    Regular Coder
    Join Date
    May 2012
    Location
    USA
    Posts
    102
    Thanks
    0
    Thanked 7 Times in 7 Posts
    I think that it is the best optimized way of creating table in Asp.net.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •