How to read long url with parameters from WEB.CONFIG ?

Discussion in 'ASP .Net' started by SMichal, Nov 29, 2006.

  1. SMichal

    SMichal Guest

    Hi,
    how can I read this link with parameters from web.config ?
    There's syntax error when I try to define it in web.config.
    http://dotnet1/carspecs/options.asp?language_id=3&specsdb=SSCD_CS2002&target_currencies=EUR&projectdb=carspecs_PROJECT&screen=options&category=O&init="
    SMichal, Nov 29, 2006
    #1
    1. Advertising

  2. SMichal

    Gozirra Guest

    The characters in the URL are not valid within XML. URL Encode the
    value and then decode when reading. That should fix your problem.

    SMichal wrote:
    > Hi,
    > how can I read this link with parameters from web.config ?
    > There's syntax error when I try to define it in web.config.
    > http://dotnet1/carspecs/options.asp?language_id=3&specsdb=SSCD_CS2002&target_currencies=EUR&projectdb=carspecs_PROJECT&screen=options&category=O&init="
    Gozirra, Nov 29, 2006
    #2
    1. Advertising

  3. You can also use HttpServerUtility.UrlEncode to get the url encoded
    url

    On Wed, 29 Nov 2006 13:38:44 +0100, "SMichal"
    <> wrote:

    >Hi,
    >how can I read this link with parameters from web.config ?
    >There's syntax error when I try to define it in web.config.
    >http://dotnet1/carspecs/options.asp?language_id=3&specsdb=SSCD_CS2002&target_currencies=EUR&projectdb=carspecs_PROJECT&screen=options&category=O&init="
    >

    --

    Bits.Bytes.
    http://bytes.thinkersroom.com
    Rad [Visual C# MVP], Dec 1, 2006
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Bob
    Replies:
    7
    Views:
    944
    Saravana [MVP]
    May 5, 2004
  2. Jon paugh
    Replies:
    1
    Views:
    686
  3. George Marsaglia

    Assigning unsigned long to unsigned long long

    George Marsaglia, Jul 8, 2003, in forum: C Programming
    Replies:
    1
    Views:
    659
    Eric Sosman
    Jul 8, 2003
  4. CSharpner
    Replies:
    0
    Views:
    1,000
    CSharpner
    Apr 9, 2007
  5. Bob
    Replies:
    8
    Views:
    189
    Saravana [MVP]
    May 5, 2004
Loading...

Share This Page