摘要: 在<% %> 之间可以写服务器端代码。 若前面有个=,则是直接引用服务器代码中的值(如:后台的变量值)。 <% for(var i=0;i<10;i++){ //执行循环体 } %> 或者 <% String contextPath = application.getContextPath();// 阅读全文
posted @ 2021-06-16 11:42 哈哈咖咖 阅读(403) 评论(0) 推荐(0) 编辑
摘要: 前台代码 <li runat="server" id="userm"><a href="../other/User.aspx">用户管理</a></li>1后台代码 protected void Page_Load(object sender, EventArgs e){ //(推荐使用)方法一:这 阅读全文
posted @ 2021-06-16 11:18 哈哈咖咖 阅读(543) 评论(0) 推荐(0) 编辑