
Signature
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
the code you posted gives me several warnings and errors:
from the code you posted I removed a '=' from =<%=
ConfigurationManager.AppSettings
so I get =<% ConfigurationManager.AppSettings instead... I get fewer errors
then, the errors (some are warnings) I get then are listed below:
- Code blocks are not supported in this context
- Attribute values must be enclosed in quotation marks
- Content ('<MailDefinition From=') does not match any properties within a
'System.Web.UI.WebControls.CreateUserWizard', make sure it is well-formed.
any suggestions?
> <MailDefinition From=<%= ConfigurationManager.AppSettings["EmailAddress"]
> %> BodyFileName="~/MailFile.txt" Subject="Confirmation">
[quoted text clipped - 25 lines]
>>
>> any suggestions?
Eliyahu Goldin - 26 Mar 2008 19:38 GMT
Oops, I copied it from a different context. The correct syntax for your case
is
<MailDefinition From="<%$ AppSettings: EmailAddress %>" ...
The <appSettings> section in the web.config is correct.

Signature
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
> the code you posted gives me several warnings and errors:
>
[quoted text clipped - 39 lines]
>>>
>>> any suggestions?