如何将Url连接到GridView

时间:2017-07-05 02:03:11

标签: mysql vb.net url odbc

我已使用sql连接已连接odbc服务器。

    Using con As New OdbcConnection("DRIVER={SQL Server};Server=WJNJPHR8TCX8P\SQLEXPRESS;Database=Fabrics;Integrated Security=True;"),
  cmd As New OdbcCommand("SELECT * FROM [Client] WHERE [ClientID] = ? Or [FirstName] = ? OR [MiddleName] = ? OR [LastName] = ?", con)
        con.Open()

    End Using

我还建立了HostPathUrl

        Dim host As String = HttpContext.Current.Request.Url.Host
        Dim path As String = HttpContext.Current.Request.Url.AbsolutePath
        Dim url As String = HttpContext.Current.Request.Url.AbsoluteUri

并建立NameValueCollection

        Dim qscoll As NameValueCollection = HttpUtility.ParseQueryString(url)

例如:

我输入http://localhost:21231/example.aspx?ClientId=13并在GridView中显示结果集ClientId = 13。

问题:

如何将UrlGridView

相关联

任何帮助将不胜感激。

谢谢! :)

0 个答案:

没有答案