当前位置: 移动技术网 > IT编程>开发语言>.net > ASP.NET三层架构UI层(六)

ASP.NET三层架构UI层(六)

2020年07月09日  | 移动技术网IT编程  | 我要评论

15.退出时不执行验证

  ●Causes' Validation="false"
  ●ValidationGroup

16.后台提示并跳转

 Response. Write (“" <script>alert ('修改成功’) :locat ion. href=' userlist. aspx' </script>") ;

17.推出功能实现

  1)Session.Abandon);//终止当前会话
  2)Response.Redirect("Login.aspx";//跳转至未登录时的默认页面

18.如何实现光棒效果

  ●后台代码实现
   1)添加RowDataBound事件
   2)筛选所有数据行: e.Row.RowType == DataControlRowType.DataRow
   3)对每一数据行添加属性(注意保存原有行的背景色等样式信息)
 ●前台jQuery实现

$ (function () {
        $("tr:gt(O) "). hover (function () {
              current = $ (this). css (”backgroundColor") ;
              $(this). css({ backgroundColor:" aqua” } ) ;
        },function () {
                $(this). css({ backgroundColor: current }) ;
       });
});
 

本文地址:https://blog.csdn.net/Heroine11111/article/details/107127515

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网