Protected Sub gvPreweight_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles gvPreweight.RowDataBound
Dim chkfirmlab As CheckBox = CType(e.Row.FindControl("chkfirmlab"), CheckBox)
If Not IsNothing(chkfirmlab) Then
chkfirmlab.Checked = False
chkfirmlab.Attributes.Add("Onclick", "return confirm('Are you sure your want to confirm recived sampling?')")
End If
End sub
Sub setdata()
....code.....
End sub
Tag : .NET, Ms SQL Server 2005, Web (ASP.NET), VS 2008 (.NET 3.x)