我已使用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
我还建立了Host
,Path
,Url
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。
问题:
如何将Url
与GridView
任何帮助将不胜感激。
谢谢! :)