We help IT Professionals succeed at work.
Get Started

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

Bird757
Bird757 asked
on
372 Views
Last Modified: 2013-01-11
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>
Comment
Watch Question
IT Pro/Developer
CERTIFIED EXPERT
Top Expert 2008
Commented:
This problem has been solved!
Unlock 1 Answer and 3 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE