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

Recommended Answers

All 3 Replies

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

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

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.