473,385 Members | 1,772 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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

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&targ et_currencies=EUR&projectdb=carspecs_PROJECT&scree n=options&category=O&init="
Nov 29 '06 #1
2 3134
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&targ et_currencies=EUR&projectdb=carspecs_PROJECT&scree n=options&category=O&init="
Nov 29 '06 #2
You can also use HttpServerUtility.UrlEncode to get the url encoded
url

On Wed, 29 Nov 2006 13:38:44 +0100, "SMichal"
<mi************@trygon-softwareberatung.dewrote:
>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&targ et_currencies=EUR&projectdb=carspecs_PROJECT&scree n=options&category=O&init="
--

Bits.Bytes.
http://bytes.thinkersroom.com
Dec 1 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

21
by: Gavin | last post by:
Hi, I'm a newbie to programming of any kind. I have posted this to other groups in a hope to get a response from anyone. Can any one tell me how to make my VB program read the Bios serial number...
3
by: Mustaq | last post by:
Hi, How to read same config file from different application? I have 4 application in VB.NET, all are using different app.config files. NOW I need all to read only one config file, how can I do...
0
by: JDeats | last post by:
I have a WinForms application that I'm trying to deploy as a "SmartClient" (where .exe downloads and auto launches from IE using ..NET IEExec process). Part of my criteria for the app is to be...
1
by: Dotnet Gruven | last post by:
I've posted this in the adonet group, however it was suggested I might have better luck here.... ============================================================= I'm trying to use a typed dataset and...
10
by: NuB | last post by:
I'm creating a C# class file(DLL) that will be used by an asp.net application. In the DLL I want to read a web.config, or app.config file so some information can change without having to go into...
1
by: Greg Allen | last post by:
I have a timeout issue with a long running web service, and I can't figure out where the timeout value is coming from. In the client I end up getting the following exception: The underlying...
4
by: tshad | last post by:
I need to pass a few parameters to my Windows Service program. The end user will be changing the parameters and settings should be saved. What is the best practice - use app.config - use .ini...
2
by: Jared Grant | last post by:
I am trying to find the value from some output parameters from a stored procedure. I have tried several different methods but somehow cannot get it to work. here is my source code: dim dr as...
6
Cintury
by: Cintury | last post by:
Hi all, I've developed a mobile application for windows mobile 5.0 that has been in use for a while (1 year and a couple of months). It was developed in visual studios 2005 with a back-end sql...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.