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

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

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

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:
    1,171
    Saravana [MVP]
    May 5, 2004
  2. Jon paugh
    Replies:
    1
    Views:
    1,334
  3. Hardy Wang
    Replies:
    2
    Views:
    1,642
    Joe Fallon
    Jul 31, 2004
  4. George Marsaglia

    Assigning unsigned long to unsigned long long

    George Marsaglia, Jul 8, 2003, in forum: C Programming
    Replies:
    1
    Views:
    953
    Eric Sosman
    Jul 8, 2003
  5. Daniel Rudy

    unsigned long long int to long double

    Daniel Rudy, Sep 19, 2005, in forum: C Programming
    Replies:
    5
    Views:
    1,555
    Peter Shaggy Haywood
    Sep 20, 2005
  6. CSharpner
    Replies:
    0
    Views:
    1,396
    CSharpner
    Apr 9, 2007
  7. Mathieu Dutour

    long long and long

    Mathieu Dutour, Jul 17, 2007, in forum: C Programming
    Replies:
    4
    Views:
    681
    santosh
    Jul 24, 2007
  8. Bob
    Replies:
    8
    Views:
    322
    Saravana [MVP]
    May 5, 2004
Loading...