Jump to content

How do you refer to the url?


mr.mahon

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...