Handling and managing URL

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.
 
C

Chandra Sekhar

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,225
Members
46,815
Latest member
treekmostly22

Latest Threads

Top