I can display it fine as it is.
<appSettings>
<add key="contactUsFormSmallText" value="All Quotes sre subject to change.
Telephone calls and faxes are only accepted between our published office
working hours. Calls may be recorded for training and security purposes."/>
</appSettings>
And then, in the aspx :
Dim MyKey As String = ConfigurationSettings.AppSettings("contactUsFormSm allText")
key1.Text = MyKey
See it running at :
http://asp.net.do/test/testappsettingskey.aspx
Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ :
http://asp.net.do/faq/
Foros de ASP.NET en Español :
http://asp.net.do/foros/
======================================
"Dr. Paul Caesar - CoullByte (UK) Limited"
<Dr****************************@discussions.micros oft.com> wrote in message
news:1B**********************************@microsof t.com...
no, all on seperate lines.
The web.config file on the other web sites also having same problem with
similar key values.
using VS2003 Framework 1.1
"Juan T. Llibre" wrote:
Is the key written out on the same line ?
Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"Dr. Paul Caesar - CoullByte (UK) Limited"
<Dr****************************@discussions.micros oft.com> wrote in message
news:0E**********************************@microsof t.com... > We have a contact us page that is used throughout our sites. I have over the
> last few days modified all sites to obtain information from Application
> Settings.
>
> It is a simple form that when ran on the server sends an email using keys in
> application settings block of the web.config file.
>
> I have played about with the key and sometimes it works and sometimes does
> not. The key seems to be crashing IIS on Windows Server 2003 SP1.
>
> The key reads as follows:
>
> <add key="contactUsFormSmallText" value="All Quotes sre subject to change.
> Telephone calls and faxes are only accepted between our published office
> working hours. Calls may be recorded for training and security purposes."/>
>
> if I change the key to have no value or just the value test all works fine.
>
> I have loads of other keys that even contain longer values. I have typed the
> values and tried to alter the value but still get my problem. When I try and
> clcik the submit button on the form with codebehind nothing happens, it does
> not seem to even send anything back to the server.
>
> Any ideas?