RE: How to extract variable and its value from URL



This variable getting... do you want to do this to a URL, or from within a
page that has been requested with those variables?

If it is the 2nd, take a look at the Response class which you can easily
query with...

int varA,varB;
varA = Response["a"];
varB = Response["b"];

Brendan


"Jozef Jarosciak" wrote:

> I have url:
> www.site.com/index?a=1&b=2
> www.site.com/index?a=1
>
> and I need a regex or some solution to extract 'a' variable and its
> value.
>
> Any ideas?
> joe
>
>
.



Relevant Pages