user2043533
user2043533

Reputation: 751

Get the string after the aspx?

Say I type:

blah.com/page.aspx/Touch?test=2

How could I get 'Touch' in Page_Load?

Thanks

Upvotes: 0

Views: 58

Answers (2)

Hans Kesting
Hans Kesting

Reputation: 39284

I think you want the PathInfo property of the Request object.

from the linked page:

For the URL Http://www.contoso.com/virdir/page.html/tail, the PathInfo value is /tail.

Upvotes: 1

Retired_User
Retired_User

Reputation: 1595

You need Request.Querystring. Take a look at this msdn documentation page: http://msdn.microsoft.com/en-us/library/ms524784(v=vs.90).aspx

Upvotes: 0

Related Questions