• 点击gridview弹出网页修改当前行


    'Protected Sub GridView1_RowDataBound1(ByVal sender As Object, ByVal e As GridViewRowEventArgs) Handles GridView1.RowDataBound
        '    If e.Row.RowType = DataControlRowType.DataRow Then
        '        'e.Row.Attributes.Add("onclick ", "if(document.oldTr !=null){document.oldTr.runtimeStyle.cssText= ' ';}this.runtimeStyle.cssText= 'background-color:red ';document.oldTr=this;window.showModelessDialog( 'bb.aspx?id= " + e.Row.Cells(0).Text + " '); ")
        '        ' e.Row.Attributes.Add("onclick ", "if(document.oldTr !=null){document.oldTr.runtimeStyle.cssText= ' ';}this.runtimeStyle.cssText= 'background-color:blue ';document.oldTr=this; ")
        '        ' ViewState("PageIndex") = e.Row.Cells(0).Text
        '        ' Response.Write(ViewState("PageIndex"))
        '        e.Row.Attributes.Add("onclick", e.Row.ClientID.ToString() + ".checked=true;selectx(this)")
        '    End If

        'End Sub
        'Protected Sub GridView1_RowDataBound(ByVal sender As Object, ByVal e As GridViewRowEventArgs) Handles GridView1.RowDataBound
        '    If e.Row.RowType = DataControlRowType.DataRow Then
        '        'e.Row.Attributes.Add("onmouseover", "if(this!=prevselitem){this.style.backgroundColor=e.Row.style.backgroundColor}")
        '        '当鼠标停留时更改背景色
        '        'e.Row.Attributes.Add("onmouseout", "if(this!=prevselitem){this.style.backgroundColor=e.Row.style.backgroundColor}")
        '        '当鼠标移开时还原背景色
        '        'e.Row.Attributes.Add("onclick", e.Row.ClientID.ToString() + ".checked=true;selectx(this);window.showModelessDialog( 'course.aspx?id= " + e.Row.Cells(0).Text + " ');")
        '        e.Row.Attributes.Add("onclick", e.Row.ClientID.ToString() + ".checked=true;selectx(this);")
        '    End If
        'End Sub

        'Protected Sub GridView1_RowDataBound(ByVal sender As Object, ByVal e As GridViewRowEventArgs) Handles GridView1.RowDataBound
        '    ' e.Row.Attributes.Add("onmouseover", "c=this.style.backgroundColor;this.style.backgroundColor='#95B8FF'")
        '    'e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor=c")
        '    e.Row.Attributes("style") = "Cursor:hand"
        '    Dim count As Integer = GridView1.Rows.Count
        '    Dim ID As String = ""
        '    For i As Integer = 0 To count - 1
        '        Session("course") = GridView1.DataKeys(i).Value.ToString()
        '        'Session("course") = e.Row.Cells(i).Text
        '        'GridView1.Rows(i).Attributes.Add("onclick", "newwin=window.open('addclass.aspx?ID=" + ID + "','newwin','width=500,height=550')")
        '        Response.Write(Session("course"))
        '    Next
        'End Sub

  • 相关阅读:
    项目经理-要材料
    java stream 处理
    listGiftBagShowInfo 这个方法 我搞了一晚上
    BigDecimal.ROUND_UP 如果 从 double 到 Decimal 有异常, 必须从double到String然后 Decimal 就可以了
    json串 转 list<class> 方法 List转JSONArray和JSONArray转List
    昨晚加班到3点多-身体都虚脱了
    MVN 点击compile总是失败
    IDEA使用笔记(八)——自动生成 serialVersionUID 的设置
    Maven 版本号规范
    java多线程学习
  • 原文地址:https://www.cnblogs.com/zzxap/p/2175962.html
Copyright © 2020-2023  润新知