mr.mahon Posted June 20, 2006 Share Posted June 20, 2006 How on earth do you refer to the url with asp.net?In a url you will often see www.someplace.com/page/?id=17 in your code you can say, ok look at the url, and go to line 17 in database X.How do you do that? Link to comment Share on other sites More sharing options...
aspnetguy Posted June 20, 2006 Share Posted June 20, 2006 YOu would do this to get the value of idC# string ID = Request.Querystring["id"]; VB Dim ID As StringID = Request.QueryString("id") What you do with it after that is up to use. You could use it in a SQL statement like this.C# string sql = "SELECT * FROM tableName WHERE idColumn = " + ID; Hope this helps. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now