cyclonebri
Regular
Hi All,
I'm having some issues and I wondered if anyone else has had this problem before and if so, how to solve it.
Basically, I need to make a header and footer that contain some information that will go across all of my aspx pages for this system. The problem is that the only way I've found to include a header and footer is using user controls. Creating the controls and adding them to the page is also not a problem, but there are two problems with doing things this way which I need help solving.
First of all, creating a custom user control 'pads' the table that I have within the control, so that when I add it to the page there is a whitespace border around it, which I do not want (I need it flush to the top left and 100% with flush to the right. Because the user control is flow layout and cannot be changed, I cannot move the table within the design view to be flush on the top and left as I need to. IF I could do this, it would work fine, but the IDE won't let me change to grid layout for a user control, and putting a panel or other control in still remains padded with that same border.
The second problem is that on resize of the control (even in an embedded table to hold the control), the control changes size and the rest of the page overlaps it, rather than the rest of the page being rendered following the bottom of the header or top of the footer. This is completely unacceptable !
If anyone has advice on how to beat either of these problems, I would sure appreciate it. Furthermore, this must be rendered in 1.1, so using 2.0 is not an option.
Thanks,
Brian
I'm having some issues and I wondered if anyone else has had this problem before and if so, how to solve it.
Basically, I need to make a header and footer that contain some information that will go across all of my aspx pages for this system. The problem is that the only way I've found to include a header and footer is using user controls. Creating the controls and adding them to the page is also not a problem, but there are two problems with doing things this way which I need help solving.
First of all, creating a custom user control 'pads' the table that I have within the control, so that when I add it to the page there is a whitespace border around it, which I do not want (I need it flush to the top left and 100% with flush to the right. Because the user control is flow layout and cannot be changed, I cannot move the table within the design view to be flush on the top and left as I need to. IF I could do this, it would work fine, but the IDE won't let me change to grid layout for a user control, and putting a panel or other control in still remains padded with that same border.
The second problem is that on resize of the control (even in an embedded table to hold the control), the control changes size and the rest of the page overlaps it, rather than the rest of the page being rendered following the bottom of the header or top of the footer. This is completely unacceptable !
If anyone has advice on how to beat either of these problems, I would sure appreciate it. Furthermore, this must be rendered in 1.1, so using 2.0 is not an option.
Thanks,
Brian