Avatar of Bird757
Bird757
Flag for South Africa

asked on 

Page Template for C# Web (newbie web design request)

I am hoping someone can help me create a base template for a form page I am trying to add to an existing web site. My web skills are fairly basic but this is a very simple page I need to add. Problem is I am struggling with the basics.

I want to have a header bar, a Middle that will contain rows of data, and a footer. The header I want to keep visible because I want to put some controls there.

What I have tried is to create a Table, with 3 rows. What I can't get right is to have a scroll bar on the middle row?

So I was trying to put a frame inside the middle row (and then scroll the frame) but this does not feel like the right way to do it?

Is there a good way of doing this in C# - well the code is C# but I am guessing the page is plain HTML.

The base I have in place at the moment is:
<body>
    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="maintable">
        <tr valign="top">
            <td height="77">
            </td>
            <td id="navigation" background="images/blank.gif" width="960" height="77" align="center">
                <div class="loginlink">
                    <a href="http://myweb.com/" target="_blank">Logout</a>
                </div>
                <div class="nav">
                    <a href="login.aspx">Login</a>
                    <a href="login_summarygrid.aspx" class="on">Summary</a>
                    <a href="blank.aspx">TBA</a>
                    <a href="blank.aspx">TBA</a>
                    <a href="blank.aspx">TBA</a>
                </div>
                <div class=commandlink>
                    <a href="login_summarygrid.aspx" target="_top">Current Week</a>
                </div>
            </td>
            <td height="77">
            </td>
        </tr>
        <tr valign="top">
            <td colspan="3" height="600">
-- This is where I want my table
-- The table has a variable number of columns and rows (12 columns normally, up to 200 rows) and comes from a DB Connection
            </td>
        </tr>

        <tr valign="top">
            <td height="94">
            </td>
            <td id="footer" background="images/footer.gif" width="960" height="94" align="center">
                <!--#include virtual="inc/copyright.inc" -->
            </td>
            <td height="94">
            </td>
        </tr>
    </table>
</body>
ASP.NET

Avatar of undefined
Last Comment
Amandeep Singh Bhullar

8/22/2022 - Mon