0

Hey there

I'm currently going through a guide made by wrox, getting started with a asp.net
Anyways, ive stumbled across a problem :(
In the tutorial it tell me to access "Profile.Preferences.Theme" however in my Webform, there is no such option

This is my current "Web.config" file

<configuration>
    <system.web>
        <compilation debug="false" targetFramework="4.0" />
      <profile>
        <properties>
          <group name="Preferences">
            <add name="Theme"/>
            <add name="Currency"/>
          </group>
        </properties>
      </profile>
    </system.web>

</configuration>

and this is how my webform looks:

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Server Object</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <h1>Profile Object</h1>
    Your Profile Object:
        <asp:Literal ID="LiteralTheme" runat="server"></asp:Literal>
    </div>
    </form>
</body>
</html>

What am i doing wrong :(?

Kind Regards
-Jazerix

2
Contributors
3
Replies
4
Views
6 Years
Discussion Span
Last Post by Jazerix
0

you should have a web.config in the root directory of the website you're making. This is a separate file from your webforms.

0

you should have a web.config in the root directory of the website you're making. This is a separate file from your webforms.

That is exactly what there is :(
http://i54.tinypic.com/140f7md.png

Edited by Jazerix: n/a

0

Just installed "Microsoft Visual Web Developer 2010 Express", and it works perfectly fine there, so what am i doing wrong :S?

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.