Torna al Thread

Sub CustomersGridView_RowDataBound(ByVal sender As Object, ByVal e As GridViewRowEventArgs) If e.Row.RowType = DataControlRowType.DataRow Then Dim DropDownList3 As DropDownList = DirectCast(e.Row.FindControl("DropDownList3"), DropDownList) Dim btnTest As Button = DirectCast(e.Row.FindControl("btnTest"), Button) btnTest.OnClientClick = String.Format("alert(document.getElementById('{0}'));", DropDownList3.ClientID) End If End Sub
Copyright © dotNetHell.it 2002-2024
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5