473,322 Members | 1,425 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,322 software developers and data experts.

Problem storing a URL in my Web.config?

I want to store a URL like <add key name="someURL"
value="http://test/test.aspx?id=1&name=test" />

When I try this I get an error when I try to build/run the application.

What is the correct way to store this in the Web.Config. It does'nt seem to
like the question mark and &.

May 23 '07 #1
3 11422
You need to encode the ? and &.

I think the question mark is %3f (though not sure). The & can be encoded as
&amp;

--
Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available
"C" <C@discussions.microsoft.comwrote in message
news:DC**********************************@microsof t.com...
>I want to store a URL like <add key name="someURL"
value="http://test/test.aspx?id=1&name=test" />

When I try this I get an error when I try to build/run the application.

What is the correct way to store this in the Web.Config. It does'nt seem
to
like the question mark and &.

May 23 '07 #2
"C" <C@discussions.microsoft.comwrote in message
news:DC**********************************@microsof t.com...
When I try this I get an error
Sigh...

What error do you get...?

--
http://www.markrae.net

May 23 '07 #3
Thanks David.

"David" wrote:
You need to encode the ? and &.

I think the question mark is %3f (though not sure). The & can be encoded as
&

--
Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available
"C" <C@discussions.microsoft.comwrote in message
news:DC**********************************@microsof t.com...
I want to store a URL like <add key name="someURL"
value="http://test/test.aspx?id=1&name=test" />

When I try this I get an error when I try to build/run the application.

What is the correct way to store this in the Web.Config. It does'nt seem
to
like the question mark and &.


May 23 '07 #4

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

Similar topics

3
by: Bragadiru | last post by:
I have a solution with 2 projects: a class library(my.dll) + a windows application (mine.exe). In exe project I have a reference to the dll. In both I have app.config files, BUT only...
1
by: Ritu | last post by:
How to store connection strings in machine.config?What are the advantages of storing it in the machine.config file.Can u provide me with the information regarding accessibility of machine.config...
3
by: Jay | last post by:
Hello, I have Windows Forms application which uses MS Access Database and a Pocket PC application which uses Datasets, Iam trying to pass Datasets between these applications using WebServices. ...
7
by: jsale | last post by:
I'm currently using ASP.NET with VS2003 and SQL Server 2003. The ASP.NET app i have made is running on IIS v6 and consists of a number of pages that allow the user to read information from the...
3
by: Kevin L | last post by:
I want to store database credentials in either the registry or a file. What is the easiest way to encrypt this information?
9
by: KarlM | last post by:
After reading some articles regarding confuguration data I'm a bit confused. Where is the right place for storing configuration data? - XML-files? - registry? - INI-files? (from a users point...
5
by: djc | last post by:
is it still customary to use web.config and global.asax to store connection strings? For example storing the string in web.config and using application start procedure in global.asax to declare a...
0
by: Nenad Dobrilovic | last post by:
Hi all, I have a really strange situation, but I believe that there is someone else who has already experinced the same, and is willing to help me! I made an application using VS 2005 in C#,...
1
by: CodeMonkey | last post by:
We have quite a few datasets that have been designed through the IDE. In our application, we generate a connection string to the server based on what the user configures the application for. The...
11
by: =?Utf-8?B?bWljaGFlbCBzb3JlbnM=?= | last post by:
I have worked with application settings in VS2005 and C# for awhile, but usually with standard types. I have been trying to store a custom container/class/type in an application setting and I have...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.