web.config
Quote:
<?xml version="1.0"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<system.web>
<compilation debug="false" targetFramework="4.5" />
<httpRuntime targetFramework="4.5" />
<profile>
<properties>
<add name ="MyName"/>
</properties>
</profile>
</system.web>
</configuration>
|
Quote:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="LoginPage.aspx.cs" Inherits="LoginPage" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Literal ID="LiteralTheme" runat="server"></asp:Literal>
</div>
</form>
</body>
</html>
|
Quote:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class LoginPage : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Profile.MyName = "hello world";
this.LiteralTheme.Text = Profile.MyName;
}
}
|
displays the following error when i try to open
it doesnt matter if i add debug = true or i add authentification with form then pass on form url.NOTHING SEEMS TO WORK :(
http://s13.postimage.org/meu3bqgg7/Error.png
also the "fixed video 4" in the errata seems to be the same as the old one.
HELP