Footer web user control

Posted on 2005-04-15
Last Modified: 2008-02-26

I'm currently using MS Visual .NET programming in C# for a website. I have a footer file right now but I have a problem where the footer loads inthe middle of the screen instead of loading after everything else on the page is loaded. so for example, on the login page, the footer would show up in between the "enter login" and "enter password lines". in the news page, where i'm using a datalist, the footer would just cut into the middle of that list.

I'd really appreciate it if anyone can give me some help. I can paste the code from the footer.aspx file or footer.aspx.cs or login/news.aspx files if that can help.

Question by:kdog2k2
    LVL 5

    Expert Comment

    That would be best if you posted the code.

    LVL 12

    Accepted Solution

    Maybe it's because your other controls are gridlayout with a absolute position in their styles.

    Try remove the style property of all your web controls(if not many), and position them use
    table instead.
    LVL 12

    Expert Comment

    Or you can add several <br> tags before your user control
    to force it down the screen.

    Author Comment

    hrm. i meant to give a grade of A, but clicked on the wrong one.... know how i can change that?

    Author Comment

    oh and as an extension to this question.... using a table in a page to format works of course, but when i have many pages i'd have to put each page into a table, and lose the drag-and-drop positioning ease of visual studio .net.... it gets a little tedious.

    is there any way to set the properties of the webusercontrol so that it sticks to the bottom of the page? or is it possible to create a table in the footer webusercontrol so that any aspx pages that includes the footer will automatically drop their contents into a particular table cell that's specified in the webusercontrol?


    (manually adding br tags wouldn't work because the page contents' length changes dynamically)
    LVL 12

    Expert Comment

    Don't know any that kind of trick.

    Maybe you can have a try of this:
    put the user control inside
    <span style="Z-INDEX: 101; LEFT: 248px; POSITION: absolute; TOP: 150px">
    You have to adjust the numbers there.
    I'm not sure if that will works.
    That's what I can think of.

    Author Comment

    ah, i figured out that you can just drag and drop a "grid layout panel" from the html toolbox, so i can still position elements by drag and drop within the table.

    Thanks for all your help.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Join & Write a Comment

    AJAX ModalPopupExtender has a required property "TargetControlID" which may seem to be very confusing to new users. It means the server control that will be extended by the ModalPopup, for instance, if when you click a button, a ModalPopup displays,…
    I have developed many web applications with asp & and to add and use a dropdownlist was always a very simple task, but with the new, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now