Handling and managing URL

  • Thread starter Thread starter Sara T.
  • Start date Start date
S

Sara T.

Does ASP.NET have any class or API to handle URL like the issues as
following ?

URL: http://www.abc.com

I need to add one or two variables named param1 and param2 like this:

Dim s As String = Request.Url.ToString
s = AddParam(strResult, "param1", "value1")
s = AddParam(s, "param2", "value2")

The result should be

http://www.abc.com?param1=value1&param2=value2

And if I need to remove some parameter in UTL like this:
s = DeleteParam(s, "param1")

The result should be

http://www.abc.com?param2=value2


Thanks so much,
Sara T.
 
I wrote my own routine to do this. It would have been nice if this was
possible - wasn't much complicated to write with the Enum for parameters.

Sekhar.
 
Back
Top