Partial Class Blank Inherits System.Web.UI.Page Protected Sub Button1_Click(sender As Object, e As System.EventArgs) Handles Button1.Click Dim lbl1, lbl2, lbl3 As New Label() lbl1 = CType(ListView1.FindControl("OptLabel"), Label) TextBox1.Text = lbl1.Text <<<<<<<< nullexception error right here but there is data in the Listview End Sub End Class
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)