• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 175
  • Last Modified:

Footer web user control

Hi,

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.

THanks!
0
kdog2k2
Asked:
kdog2k2
  • 3
  • 3
1 Solution
 
ovalsquareCommented:
That would be best if you posted the code.

Ted
0
 
laotzi2000Commented:
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.
0
 
laotzi2000Commented:
Or you can add several <br> tags before your user control
to force it down the screen.
0
Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

 
kdog2k2Author Commented:
hrm. i meant to give a grade of A, but clicked on the wrong one.... know how i can change that?
0
 
kdog2k2Author Commented:
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?

Thanks!

(manually adding br tags wouldn't work because the page contents' length changes dynamically)
0
 
laotzi2000Commented:
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">
</span>
You have to adjust the numbers there.
I'm not sure if that will works.
That's what I can think of.
0
 
kdog2k2Author Commented:
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.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now