<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="True" > </asp:GridView>and something like this in the code behind:
Dim SQL As String SQL = "SELECT * INTO #TempConstraint FROM " + SourceTableRBL.SelectedValue Dim oConn As New SqlConnection(ConfigurationManager.ConnectionStrings("TIPConnectionString").ConnectionString) Dim oCommand As New SqlCommand(SQL, oConn) oConn.Open() oCommand.ExecuteNonQuery()So now that a temp table has been created, how can I get it into my gridview? And secondly, how or when do I dispose of the connection to avoid problems?