Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.
If Not IsPostBack Then ' Declare the query string. Dim queryString2 As String = _ "Select * From Questions" ' Run the query and bind the resulting DataSet ' to the GridView control. Dim ds2 As DataSet = GetData(queryString2) If (ds2.Tables.Count > 0) Then Me.GridView2.DataSource = ds2 Me.GridView2.DataBind() Else 'Me.Label_Error1.Text = "Unable to connect to the database. " & Err.Description End If