zoukankan      html  css  js  c++  java
  • webform的操作完之后返回主页面的行定位

    1.在repeater表格的行绑定时给行一个id(唯一id),此地方为绑定该表格的主键。

    2.给定一个隐藏域

    <input id="hidID" type="hidden" runat="server" />

    3.在进入到编辑页面时,将唯一主键相继带入。赋给隐藏域

    4.增加两个js

     function lod() {
                    $(".biaoge tr").eq(1).addClass("sh");  
            }

     function dingwei() {
                     $("#" + $("#hidID").val()).css("background", "#CCCCFF")
             }
    5.后台载入的时候调用js

                if (!string.IsNullOrEmpty(this.hidID.Value))
                {
                    Page.ClientScript.RegisterStartupScript(this.GetType(), "", "<script>dingwei();</script>");              
                }
                else
                {
                    Page.ClientScript.RegisterStartupScript(this.GetType(), "", "<script>lod();</script>");
                }

  • 相关阅读:
    windows nginx
    stdClass 标准
    array_merge
    array_pop
    array_push
    array_unique
    GMT与UTC简介(转)
    curl-手册
    13.5. zipfile — Work with ZIP archives
    7. Input and Output
  • 原文地址:https://www.cnblogs.com/lytwajue/p/6856570.html
Copyright © 2011-2022 走看看