用asp.net 做网站时 如何用一个保持头部的部分保持不变? 用户控件!具体请参见msdn==================================弯弯的月亮小小的船,小小的船,两头尖,我在小小的船里坐,只看见闪闪的星星蓝蓝的天. 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 现在他给了我这样一个错误:<%@ Register TagPrefix="uc1" TagName="WebUserControl1" Src="WebUserControl1.ascx" %> <%@ Control Language="VB" %><link href="tablecss.css" rel="stylesheet" type="text/css"> <table width="755" border="1" align="center" cellpadding="0" cellspacing="0" background="pic/footer02.gif" class="table"> <tr> <td><img src="pic/peixun.gif" width="778" height="80"></td> </tr></table><table width="755" border="0" align="center" cellpadding="3" cellspacing="0" background="pic/footer02.gif"> <tr> <td width="83" background="pic/titlebg.gif"><div align="center"><font color="#990000" size="2"><strong>主页</strong></font></div></td> <td width="83" background="pic/titlebg.gif"><div align="center"><font color="#000000" size="2">求职信息 </font></div></td> <td width="83" background="pic/titlebg.gif"><div align="center"><font color="#000000" size="2">招聘信息</font></div></td> <td width="83" background="pic/titlebg.gif"><div align="center"><font color="#000000" size="2">用户注册</font></div></td> <td width="83" background="pic/titlebg.gif"><div align="center"><font color="#000000" size="2">企业注册</font></div></td> <td width="83" background="pic/titlebg.gif"><div align="center"><font color="#000000" size="2">办事指南</font></div></td> <td width="83" background="pic/titlebg.gif"><div align="center"><font color="#000000" size="2">关于我们</font></div></td> <td width="83" background="pic/titlebg.gif"><div align="center"><font color="#000000" size="2">后台管理</font></div></td> <td width="83" background="pic/titlebg.gif"><div align="center"><font color="#000000" size="2">退出网站</font></div></td> </tr></table>把它保存为*.ascx的文件,,然后在index.aspx里用<%@ Register TagPrefix="haokoo" TagName="header" Src="header.ascx" %这样就可以了,,,,行不行呀??给分吧1!~ In my opinion ,u should use frameset in one page,including top,left and main area!so, you could get the static top page! 有三个解决方案:1、使用框架;2、将每个页面的通用部分放在一个Javascript文件中(*.js),然后在需要的地方调用这个js文件;3、使用asp.net用户控件。 值不能为空 字符串如何转为布尔值,解决都高分相赠! 关于LoginView控件,怎么登录成功之后,LoginView控件没有响应。仍然是处于未登录状态。 .net和js的简单问题 ashx 处理图片 [求助]我写成了文档,希望高手帮忙!急…… 是高手来急救,关注也有分!! asp.net(VB)中存储过程的使用方法 ?我的ASP.net页面中有几个TextBox,我想把TextBox中的值更新到DataSet的表中,以更新SQL库!请问应该怎么做?( 关于Codebehind的问题 在datagrid中增加HyperLinkColumn列... 怎样调用客户端的数据?
<%@ Register TagPrefix="uc1" TagName="WebUserControl1" Src="WebUserControl1.ascx" %>
<link href="tablecss.css" rel="stylesheet" type="text/css">
<table width="755" border="1" align="center" cellpadding="0" cellspacing="0" background="pic/footer02.gif" class="table">
<tr>
<td><img src="pic/peixun.gif" width="778" height="80"></td>
</tr>
</table>
<table width="755" border="0" align="center" cellpadding="3" cellspacing="0" background="pic/footer02.gif">
<tr>
<td width="83" background="pic/titlebg.gif"><div align="center"><font color="#990000" size="2"><strong>主页</strong></font></div></td>
<td width="83" background="pic/titlebg.gif"><div align="center"><font color="#000000" size="2">求职信息
</font></div></td>
<td width="83" background="pic/titlebg.gif"><div align="center"><font color="#000000" size="2">招聘信息</font></div></td>
<td width="83" background="pic/titlebg.gif"><div align="center"><font color="#000000" size="2">用户注册</font></div></td>
<td width="83" background="pic/titlebg.gif"><div align="center"><font color="#000000" size="2">企业注册</font></div></td>
<td width="83" background="pic/titlebg.gif"><div align="center"><font color="#000000" size="2">办事指南</font></div></td>
<td width="83" background="pic/titlebg.gif"><div align="center"><font color="#000000" size="2">关于我们</font></div></td>
<td width="83" background="pic/titlebg.gif"><div align="center"><font color="#000000" size="2">后台管理</font></div></td>
<td width="83" background="pic/titlebg.gif"><div align="center"><font color="#000000" size="2">退出网站</font></div></td>
</tr>
</table>
把它保存为*.ascx的文件,,
然后在index.aspx里用
<%@ Register TagPrefix="haokoo" TagName="header" Src="header.ascx" %
这样就可以了,,,,
行不行呀??
给分吧1!~
so, you could get the static top page!
1、使用框架;
2、将每个页面的通用部分放在一个Javascript文件中(*.js),然后在需要的地方调用这个js文件;
3、使用asp.net用户控件。