Click here to Skip to main content
15,921,113 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Referencing User Control Attributes in Page Code Behind Pin
janetb992-Dec-11 7:53
janetb992-Dec-11 7:53 
GeneralRe: Referencing User Control Attributes in Page Code Behind Pin
jkirkerx2-Dec-11 8:49
professionaljkirkerx2-Dec-11 8:49 
AnswerRe: Referencing User Control Attributes in Page Code Behind Pin
RichardGrimmer5-Dec-11 5:37
RichardGrimmer5-Dec-11 5:37 
GeneralRe: Referencing User Control Attributes in Page Code Behind Pin
janetb996-Dec-11 8:40
janetb996-Dec-11 8:40 
GeneralRe: Referencing User Control Attributes in Page Code Behind Pin
janetb996-Dec-11 9:06
janetb996-Dec-11 9:06 
Questionconvert detailsview control to formview control Pin
classy_dog1-Dec-11 8:43
classy_dog1-Dec-11 8:43 
QuestionHow to Create a Dynamic Questionnaire Pin
Vimalsoft(Pty) Ltd1-Dec-11 3:49
professionalVimalsoft(Pty) Ltd1-Dec-11 3:49 
QuestionThe header and footer contents in master page are refreshing - Need help Pin
Member 322226430-Nov-11 19:21
Member 322226430-Nov-11 19:21 
Hi,
In master page i have header,menu,content placeholder and footer.On click of each menu items the header and footer are refreshing.i had enclosed the code and css file.

The header and footer must be fixed only the contents must change.Need help.


<%@ Master Language="C#" AutoEventWireup="true" CodeFile="Main.master.cs" Inherits="Main" %>

<%@ Register Src="~/Menu.ascx" TagName="HeaderMenu" TagPrefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head id="Head1" runat="server">

<title>Untitled Page</title>


<link href="StyleSheet.css" rel="stylesheet" type="text/css" />

</head>

<body>

<form id="form1" runat="server">

<table border="0" cellspacing="0" cellpadding="0" width="100%" align="center">
           <%-- <tr>
                <td>
                    <table id="Table1" border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td id="headerleft">
                                <img alt="left" src="Images/PortalBanner_Left.gif"/>
                            </td>
                            <td id="Td1" class="bannerimg">
                                <img alt="" src="Images/Logon_Header_Image_SCF3.jpg" style="width:450px;height:50px" />
                            </td>
                            <td id="headerright">
                                <img alt="right" src="Images/PortalBanner_right.gif" />
                            </td>
                        </tr>
                    </table>
                    <table class="bannerimg" border="0" width="100%">
                        <tr style="font-size:small; width: auto; ">
                            <td style="text-align: left; padding-left: 10px">
                                <asp:Label ID="lblWelcome" runat="server" Text="Welcome " CssClass="hrefClass"></asp:Label> 
                                <asp:Label ID="lblUser" runat="server" CssClass="hrefClass"></asp:Label>
                            </td>
                           
                            <td style="width: auto; text-align: right;">
                                <asp:LinkButton ID="lnHome" runat="server" class="hrefClass" CausesValidation="false" >Home</asp:LinkButton> 
                                
                                <asp:LinkButton ID="lnLogout" runat="server" class="hrefClass" 
                                    CausesValidation="false"  >Logout</asp:LinkButton>
                            </td>
                        </tr>
                    </table>
                    </td>
                    </tr>--%>
<div id="header">

<p><a href="http://blog.dampee.be/">Techspace</a>

<img src="Images/Logon_Header_Image_SCF3.jpg" alt=""/>


</p>


<span>About technology</span>

</div>

<tr>
<td colspan="3">
<div id="menu">

<uc1:HeaderMenu id="HeaderMenu1" runat="server"></uc1:HeaderMenu>

</div>
</td>
</tr>

<tr>
                <td colspan="3" style="vertical-align: top; height:600px; width: 100%; background-color: White;">
<div id="content">

 <div class="middle_blk">

<asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">

</asp:ContentPlaceHolder>

</div>

</div>

</td>
</tr>
</table>
<div id="footer">

<div class="footer_blk">

<div class="middle_blk">

<img src="Images/PoweredByASPNET.gif" alt="Powered by ASP.NET!" />

</div>

</div>

</div>

</form>

</body>

</html>



CSS
body{padding:0;margin:0;background:url(http://imgs1.2000shareware.com/contentbase/body_bg.gif) repeat-x;font:12px/18px Arial,Helvetica,sans-serif;color:#3a3e41}h1,h2,h3,h4,h5{font-weight:normal;text-align:center;font-family:Georgia,Arial,Helvetica,sans-serif}h1{margin:0 0 13px;font-size:17px;line-height:25px}h1.title{background:url(http://imgs1.2000shareware.com/contentbase/page_title.gif) no-repeat center bottom;padding:0 0 11px}h2{margin:0;font-size:19px;line-height:35px}h3{margin:0 0 13px;font-size:17px;line-height:25px}h3.title{background:url(http://imgs1.2000shareware.com/contentbase/page_title.gif) no-repeat center bottom;padding:0 0 11px}h4{font-size:13px;line-height:13px;font-family:Arial,Helvetica,sans-serif;text-align:left;margin:0 0 2px}p{margin:0 0 25px}a{text-decoration:none;color:#0058bc;outline:none}a:hover{text-decoration:underline;color:#cc2a7d}img{border-style: none;
    border-color: inherit;
    border-width: medium;
    height: 80px;
}ul,ol,dl{list-style:none;padding:0;margin:0}input,select,textarea{font:12px/18px Arial,Helvetica,sans-serif;color:#686f76}#wrapper{min-width:996px}#header{height:132px;padding-top:12px;background:url(http://imgs1.2000shareware.com/contentbase/header_bg.jpg) no-repeat center top}.middle_blk{width:996px;margin:0 auto}#header h1{float:left;margin:0 0 8px}#header h1 span{display:none}#header .search{width:189px;height:19px;float:right;margin-top:18px;padding:6px 11px 0 10px;background:url(http://imgs1.2000shareware.com/contentbase/search_blk.png) no-repeat}#header .search input{float:left;border:none;padding:0;width:160px;background:none}#header .search input.search_btn{float:right;width:14px;height:13px;background:url(http://imgs1.2000shareware.com/contentbase/search_btn.gif) no-repeat;cursor:pointer}#header ul li{float:left}#header ul li a{display:block;float:left;padding:3px 16px 0;height:38px;font:15px/35px Georgia,Arial,Helvetica,sans-serif;color:#000}#header ul li a:hover,#header ul li.active a{background-color:#cc2a7d;color:#fff;text-decoration:none}#content{background:url(http://imgs1.2000shareware.com/contentbase/content_bg.gif) repeat-x;padding:18px 0 4px;overflow:hidden}#content .col_left{width:210px;float:left}#content .topbox{background:url(http://imgs1.2000shareware.com/contentbase/col_top_box.gif) no-repeat}#content .topbox h2{background:url(http://imgs1.2000shareware.com/contentbase/col_box_title.gif) no-repeat center bottom;padding:14px 5px 4px;color:#cc2a7d}#content .cenbox{background:url(http://imgs1.2000shareware.com/contentbase/col_cen_box.gif) repeat-y;margin-bottom:11px}#content .botbox{background:url(http://imgs1.2000shareware.com/contentbase/col_bot_box.gif) no-repeat center bottom;padding:0 4px 9px}#content ul.categories{padding-top:3px}#content ul.categories li{background:url(http://imgs1.2000shareware.com/contentbase/category_tab.gif) no-repeat;padding:0 8px 8px 12px}#content ul.categories li a.title{float:left;height:25px;background:url(http://imgs1.2000shareware.com/contentbase/category_tab_title.gif) no-repeat 100% 0;padding-right:26px;color:#000;font-size:13px;font-weight:bold;line-height:30px}#content ul.categories li span.count{float:right;color:#686f76;line-height:30px}#content ul.categories li p{margin:0;clear:both;padding-top:2px;line-height:15px}#content ul.categories li.first{background:url(http://imgs1.2000shareware.com/contentbase/category_tab_first.gif) no-repeat}#content ul.categories li.first a.title{background-position:100% -25px}#content ul.categories li.last{background:url(http://imgs1.2000shareware.com/contentbase/category_tab_last.gif) no-repeat}#content .col_cen{width:544px;padding:0 15px;float:left}#content .col_cen .soft_list{overflow:hidden;padding:0 0 20px}#content .col_cen .soft_list .img_blk{float:left;width:40px}#content .col_cen .soft_list .desc{width:504px;float:right}#content .col_cen.big_pic .img_blk{width:150px}#content .col_cen.big_pic .desc{width:394px}#content .col_cen.numbers .img_blk{width:52px;padding:4px 0 0}#content .col_cen.numbers .img_blk strong{font-size:18px}#content .col_cen.numbers .desc{width:492px}#content .col_cen .soft_list .desc p{margin:0}#content .col_right{width:210px;float:right}#content ul.list{background:#fff url(http://imgs1.2000shareware.com/contentbase/col_box_last.gif) no-repeat left bottom;padding-bottom:10px}#content ul.list li{background:url(http://imgs1.2000shareware.com/contentbase/grey_dot.png) no-repeat 12px 10px;padding:0 7px 0 32px;border-bottom:1px solid #f0f3f6;border-top:none}#content ul.list li.last{border:none}#content ul.list li p{margin-bottom:5px}#content ul.list li a{line-height:25px}#content ul.new_press li{padding:4px 7px 4px 32px}#content ul.new_press li a{line-height:15px}#content p.breadcrumb{text-align:center;margin-bottom:20px}#content p.breadcrumb a{margin:0 5px}#content p.breadcrumb img{vertical-align:middle}#content p.btnblk{text-align:center;overflow:hidden;margin:22px 0 30px}#content p.btnblkNomar{text-align:center;overflow:hidden;margin:0}#content p.btnblk a.btn{float:none;display:inline-block;margin-right:15px}#content .tbl_info{width:260px;float:left;background:url(http://imgs1.2000shareware.com/contentbase/tbl_info_cen.gif) repeat-y;margin-bottom:35px}#content .tbl_top{background:url(http://imgs1.2000shareware.com/contentbase/tbl_info_top.gif) no-repeat}#content .tbl_bot{background:url(http://imgs1.2000shareware.com/contentbase/tbl_info_bot.gif) no-repeat left bottom;padding:0 1px}#content .softprew{float:left;margin:0 13px 5px 0}#content .tbl_top p{margin:0;border-bottom:1px solid #f0f3f6;line-height:30px;overflow:hidden}#content .tbl_top p span{float:left}#content .tbl_top p span.left{width:97px;padding-left:11px}#content .tbl_top p span.right{width:140px}#content .tbl_top p big{font-size:14px;color:#cc2a7d}#content .tab_mid p big{font-size:14px;color:#cc2a7d}#content .tbl_top p a{color:#3a3e41;text-decoration:underline}#content .tab_mid p a{color:#3a3e41;text-decoration:underline}#content p.softdesc{line-height:21px}#content .col_cen .pages{margin:10px 0 19px 0;float:left;width:100%;font-size:13px;line-height:13px}#content .col_cen .pages_left{font-weight:bold;float:left;margin:0 0 0 6px;display:inline}#content .col_cen .pages_left_btm{float:left;margin:0 0 0 6px}#content .col_cen .pages_right ul{float:right}#content .col_cen .pages_right ul li{display:inline;vertical-align:middle}#content .col_cen .pages_right ul li a,#content .col_cen .pages_right ul li a img,#content .col_cen .pages_right ul li span{padding:0 3px}#content .col_cen .pages_right ul li a:hover{color:#cc2a7d;text-decoration:underline}#content .col_cen .pages_right ul li span{color:#cc2a7d;font-weight:bold}#content .col_cen .pages_right img{vertical-align:middle}li.last{border:none}#content .col_cen .col_cen_box{width:507px;margin:7px 0 19px 6px;float:left}#content .col_cen .col_cen_box h4 a{font-weight:bold;font-size:13px;line-height:18px;color:#0058bc;margin-bottom:5px}#content .col_cen .col_cen_box h4 a:hover{color:#cc2a7d}#content .col_cen .col_cen_box span.date{font-weight:bold;color:#3a3e41}#content .col_cen .col_cen_box p{margin:5px 0;font-size:12px}#content .col_cen .col_cen_txt{float:left;margin:20px 0 0 0;width:100%}#content .col_cen .col_cen_txt p{margin:0 10px 30px 6px;font:12px/20px Arial,Helvetica,sans-serif;color:#686f76}#content .tab_top{background:url(http://imgs1.2000shareware.com/contentbase/table_top.png) no-repeat center top;width:535px;height:4px;float:left;font-size:1px}#content .tab_mid{background:url(http://imgs1.2000shareware.com/contentbase/table_mid.png) repeat-y center top;width:535px;float:left}#content .tab_mid p{border-bottom:1px solid #f0f3f6;line-height:30px;margin:0 auto;width:531px;overflow:hidden}#content .tab_mid p span{float:left}#content .tab_mid p span.left{padding-left:11px;width:97px}#content .tab_mid p span.left2{padding-left:11px;width:530px;background-color:#f9fafa}#content .tab_mid p span.right{padding-left:5px;width:410px}#content .tab_btm{background:url(http://imgs1.2000shareware.com/contentbase/table_btm.png) no-repeat center top;width:535px;height:4px;float:left}.footer_categories{background:#f0f3f6 url(http://imgs1.2000shareware.com/contentbase/footer_category_bg.gif) repeat-x;overflow:hidden;padding:10px 0}.footer_categories dl{width:190px;float:left}.footer_categories dt{font:15px/35px Georgia,Arial,Helvetica,sans-serif}.footer_categories dt a{color:#000}.footer_categories dl dd{background:url(http://imgs1.2000shareware.com/contentbase/grey_dot.png) no-repeat 0 7px;padding:0 0 0 20px;margin:0;line-height:20px}#footer{background:url(http://imgs1.2000shareware.com/contentbase/footer_bg.gif) repeat-x;font-size:11px;line-height:30px;color:#fff}#footer .footer_blk{background:#a62166 url(http://imgs1.2000shareware.com/contentbase/footer_blk.jpg) no-repeat center top;overflow:hidden}#footer p.copyright{float:left;margin:0;width:435px;line-height:normal;padding:8px 0 14px}#footer p.copyright.center{float:none;width:100%;text-align:center;line-height:14px;padding:0}#footer ul{float:left}#footer ul li{display:inline;margin-right:8px}#footer ul li a{color:#fff;margin-right:10px}#footer ul li a:hover{color:#fff;text-decoration:underline}a.btn,a.btn.pink{display:block;width:112px;height:29px;float:left;background-image:url(http://imgs1.2000shareware.com/contentbase/btn_bg.gif);background-position:0 0;background-repeat:no-repeat;text-transform:capitalize;font:15px/29px Georgia,Arial,Helvetica,sans-serif;color:#3a3e41}a.btn.pink{background-position:0 -29px;color:#fff}.clear{clear:both}.fleft{float:left!important}.fright{float:right!important}.nomar{margin:0!important}.acenter{text-align:center!important}.blue{color:#0058bc}.nobrd{border:none}#memo_message{background-color:#f0f3f6;border:1px solid #686f76}

Thanks
S.Guhananth
AnswerRe: The header and footer contents in master page are refreshing - Need help Pin
uspatel30-Nov-11 23:10
professionaluspatel30-Nov-11 23:10 
AnswerRe: The header and footer contents in master page are refreshing - Need help Pin
jkirkerx1-Dec-11 11:29
professionaljkirkerx1-Dec-11 11:29 
GeneralRe: The header and footer contents in master page are refreshing - Need help Pin
Member 32222641-Dec-11 23:38
Member 32222641-Dec-11 23:38 
GeneralRe: The header and footer contents in master page are refreshing - Need help Pin
jkirkerx2-Dec-11 6:23
professionaljkirkerx2-Dec-11 6:23 
GeneralRe: The header and footer contents in master page are refreshing - Need help Pin
Member 32222645-Dec-11 19:06
Member 32222645-Dec-11 19:06 
QuestionWCF message edit error Pin
arnold0930-Nov-11 19:19
arnold0930-Nov-11 19:19 
AnswerRe: WCF message edit error Pin
jkirkerx1-Dec-11 11:49
professionaljkirkerx1-Dec-11 11:49 
GeneralRe: WCF message edit error Pin
arnold092-Dec-11 0:45
arnold092-Dec-11 0:45 
GeneralRe: WCF message edit error Pin
jkirkerx2-Dec-11 6:36
professionaljkirkerx2-Dec-11 6:36 
GeneralRe: WCF message edit error Pin
arnold095-Dec-11 18:55
arnold095-Dec-11 18:55 
GeneralRe: WCF message edit error Pin
jkirkerx6-Dec-11 6:45
professionaljkirkerx6-Dec-11 6:45 
Questionloginstatus control-sessions Pin
MalarGayu30-Nov-11 14:57
MalarGayu30-Nov-11 14:57 
AnswerRe: loginstatus control-sessions Pin
Member 322226430-Nov-11 19:48
Member 322226430-Nov-11 19:48 
AnswerRe: loginstatus control-sessions Pin
uspatel30-Nov-11 23:23
professionaluspatel30-Nov-11 23:23 
AnswerRe: loginstatus control-sessions Pin
coded0071-Dec-11 2:21
professionalcoded0071-Dec-11 2:21 
GeneralRe: loginstatus control-sessions Pin
MalarGayu1-Dec-11 13:09
MalarGayu1-Dec-11 13:09 
AnswerRe: loginstatus control-sessions Pin
thatraja1-Dec-11 21:04
professionalthatraja1-Dec-11 21:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.