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 }) ; }); });
