Getting values from any URL

11,413

Solution 1

You can access all the query strings through the Request.QueryString() array:

Request.QueryString("id") will give you the 2

Solution 2

Despite my own comment saying it has been answered, here is the code.

Dim idval As String = System.Web.HttpUtility.ParseQueryString("http://localhost:49500/Learning/Chapitre.aspx?id=2")("id")
Share:
11,413
Wassim AZIRAR
Author by

Wassim AZIRAR

https://www.malt.fr/profile/wassimazirar I am not looking for permanent contract (no need to contact me for that) I develop 💻 in .NET Core, JavaScript, Angular and React ⚛

Updated on June 04, 2022

Comments