Asked by:
Trying to get a footer disply like I want it

Question
-
User-2095091985 posted
I have a footer I'm using that has a combination of text and hyperlinks. I have one page on my site that I turn the footer OFF on.
protected void Page_Load(object sender, EventArgs e) { string pagename; pagename = Request.Url.LocalPath; if (pagename.ToLower() == "/MSCScreens.aspx" ) { Panel_Footer.Visible = false; Panel_Footer.Height = 0;
I'm using a table in my footer - used to use two tables to get two columns but I had trouble positioning my hyperlinks so I went to a single table and space things with   and <br />....probably not the best way to do things. My problem is I want to position social media hyperlinks exactly on the footer. I can do this with a position: & left,top but when I use a postion such as absolute or relative the image appears on the page that has the footer turned off - floating there in the middle of a display page. What is the best way to construct a footer block that will 1) give me the ability to turn it off and 2) let me position text and images exactly where I want them?
I'll post the code but I already know it is probably horrible.
<div id="Footer"> <asp:Table ID="Table2" runat="server" Height="23px" Width="700px" Font-Bold="False" Font-Names="Gill Sans MT Pro" HorizontalAlign="left"> <asp:TableRow ForeColor="#83bf06" Font-Size="X-Large"> <asp:TableCell>   CONTACT:                                   CALL:                     <asp:HyperLink runat="server" ID="Link2" NavigateUrl="http://twitter.com/abintrasoft" Target="_new"> <asp:Image ID="Twit" ImageUrl="~/Images/new-twitter-logo[1].png" Height="25px" runat="server" style=" top:5px; z-index: 1; visibility:visible;" /> </asp:HyperLink>   <asp:HyperLink runat="server" ID="Link3" NavigateUrl="http://facebook.com/DataBinder" Target="_new"> <asp:Image ID="Image5" ImageUrl="~/Images/facebook_logo_detail[1].gif" Height="25px" runat="server" style="/*; left:5px; top:5px;*/ z-index: 1; visibility:visible;" /> </asp:HyperLink> </asp:TableCell> </asp:TableRow> <asp:TableRow ForeColor="#bbbbbb" Font-Size="X-Large"> <asp:TableCell>   AbIntra Software, LLC.                   419.491.4510                <asp:HyperLink runat="server" ID="Link4" NavigateUrl="http://linkedin.com/abintrasoft" Target="_new"> <asp:Image ID="Image7" ImageUrl="~/Images/LinkedIn-Logo-02[1].png" Height="25px" runat="server" style=" z-index: 1; visibility:visible;" /> </asp:HyperLink>    <asp:HyperLink runat="server" ID="HyperLink2" NavigateUrl="//www.youtube.com/embed/5XD0FSbxxuo?feature=player_embedded"> <asp:Image ID="Image6" ImageUrl="~/Images/yt-brand-standard-logo-95x40[1].png" Height="25px" runat="server" style=" z-index: 1; visibility:visible;" /> </asp:HyperLink> </asp:TableCell> </asp:TableRow> <asp:TableRow ForeColor="#bbbbbb" Font-Size="X-Large"> <asp:TableCell>   6904 Spring Valley Dr, Ste 307       800.537.0612 </asp:TableCell> </asp:TableRow> <asp:TableRow ForeColor="#bbbbbb" Font-Size="X-Large"> <asp:TableCell>   Holland, OH 43528                       <a href="http://www.data-binder.com/demo/DataBinder.zip">Download the Data-Binder Demo</a> </asp:TableCell> </asp:TableRow> <asp:TableRow ForeColor="#0457aa" Font-Size="X-Large" > <asp:TableCell> <a href="mailto:contact@abintrasoft.com">contact@abintrasoft.com</a> </asp:TableCell> </asp:TableRow> <asp:TableRow ForeColor="#484848" Font-Size="Small"> <asp:TableCell>                                                                             Copyright 2013 AbIntra Software, LLC     Web Development by AbIntra Software </asp:TableCell> </asp:TableRow> </asp:Table> <%-- <asp:Table ID="Table1" runat="server" Height="23px" Width="365px" Font-Bold="False" Font-Names="Gill Sans MT Pro" HorizontalAlign="left"> <asp:TableRow ForeColor="#83bf06" Font-Size="X-Large"> <asp:TableCell> CALL:                         <asp:HyperLink runat="server" ID="Link2" NavigateUrl="http://twitter.com/abintrasoft" Target="_new"> <asp:Image ID="Twit" ImageUrl="~/Images/new-twitter-logo[1].png" Height="30px" runat="server" style=" z-index: 1; visibility:visible;" /> </asp:HyperLink> <asp:HyperLink runat="server" ID="Link3" NavigateUrl="http://facebook.com/DataBinder" Target="_new"> <asp:Image ID="Image5" ImageUrl="~/Images/facebook_logo_detail[1].gif" Height="32px" runat="server" style="; left:4px; top:1px; z-index: 1; visibility:visible;" /> </asp:HyperLink> </asp:TableCell> </asp:TableRow> <asp:TableRow ForeColor="#bbbbbb" Font-Size="X-Large"> <asp:TableCell> 419.491.4510                 <asp:HyperLink runat="server" ID="HyperLink2" NavigateUrl="//www.youtube.com/embed/5XD0FSbxxuo?feature=player_embedded"> <asp:Image ID="Image6" ImageUrl="~/Images/yt-brand-standard-logo-95x40[1].png" Height="32px" runat="server" style=" z-index: 1; visibility:visible;" /> </asp:HyperLink> <asp:HyperLink runat="server" ID="Link4" NavigateUrl="http://linkedin.com/abintrasoft" Target="_new"> <asp:Image ID="Image7" ImageUrl="~/Images/LinkedIn-Logo-02[1].png" Height="31px" runat="server" style=" z-index: 1; visibility:visible;" /> </asp:HyperLink> </asp:TableCell> </asp:TableRow> <asp:TableRow ForeColor="#bbbbbb" Font-Size="X-Large" > <asp:TableCell> 800.537.0612 </asp:TableCell> </asp:TableRow> <asp:TableRow ForeColor="#0457aa" Font-Size="X-Large" > <asp:TableCell> <a href="http://www.data-binder.com/demo/DataBinder.zip">Download the Data-Binder Demo</a> </asp:TableCell> </asp:TableRow> <asp:TableRow ForeColor="#484848" Font-Size="medium" > <asp:TableCell> save to your computer, open and run installtion applet</asp:TableCell> </asp:TableRow> <asp:TableRow ForeColor="#484848" Font-Size="Small"> <asp:TableCell>Web Development by AbIntra Software, LLC</asp:TableCell> </asp:TableRow> </asp:Table>--%> <div class="wsite-map"><iframe allowtransparency="true" frameborder="0" scrolling="no" style="width: 30%; height: 190px; margin-top: 0px; margin-bottom: 0px;" src="http://www2.dragndropbuilder.com/editor/apps/generateMap.php? map=google&elementid=686651620105476868&ineditor=0&control=3&width=auto&height=250px&overviewmap=0&scalecontrol=0&typecontrol=0 &zoom=10&long=-83.7061272&lat=41.6126631&domain=www2.dragndropbuilder.com&point=1&align=1"></iframe></div> </div> </asp:Panel>
Friday, December 6, 2013 10:04 AM
All replies
-
User1051314974 posted
Put your footer content inside panel and then Add this in your footer page on foote
If(Request.RawURL.ToString() == "FooterHiddenPage.aspx") { Panel.visible = false; }
Friday, December 6, 2013 10:24 AM -
User-2095091985 posted
I'll try that, thanks. I don't have a separate page for my footer....it's on my Main.Master page. Does that make a difference?
Friday, December 6, 2013 10:49 AM