定义了一个母版页 Admin.master 部分代码如下
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | <body onload= "LoadHight()" > <div> <!--公共的头部开始--> <div class = "hearderWrap" runat= "server" > <div class = "hearderWr" > <div class = "hed_left" > <p class = "logor" > <img src= "../Resources/images/logor1.png" alt= "" /> </p> <p class = "le_clxt" > 车辆交易管理系统 </p> </div> <ul class = "hed_right" > <li><em><%=userName %></em>,欢迎使用!</li> <li><a href= "#" >修改密码</a></li> <li><a href= "../NewLogin.aspx" >退出系统</a></li> </ul> </div> </div> <div class = "wrap" id= "wrap" style= "position: relative; z-index: 19;" > <uc1:TreeUserControl runat= "server" ID= "TreeUserControl" /> <asp:ContentPlaceHolder ID= "Right" runat= "server" > </asp:ContentPlaceHolder> </div> </div> </body> <script> function LoadHight() { var left = $( '.zcar_glxt_left' ).height() + 100; var cr = $( '.c-r' ).height(); if (left < cr) { $( '.zcar_glxt_left' ).height(cr - 100) } } </script> |
其他页面引用的改母版 包括登陆页面
登陆后点击按钮 跳转到 Admin.master页面后台的page_load事件,现在时间里面啥也没写
就是
if(!isPostback){
}
点击登陆按钮后会走两边 page_load 并且每次ispostback都是false
是用了asp控件原因还是什么请教!!!