Possible Duplicate:
Get query string values in JavaScript
What is the best way to get "test1" from
, and through PageMethod pass it to webmethod. I think one way is to take from window.location.pathname, cut the string and pass it like a parameter.