0

i have a problem with page_load event of my loginUrl page.

To exclude all the other problem i created a pageTest completely empty

 <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TestPage_NoMaster.aspx.cs" Inherits="project.TestPage_NoMaster" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>

</div>
</form>
</body>
</html>

in my web.Config i have this configuration:

 <authentication mode="Forms">
  <forms name="login" loginUrl="~/TestPage_NoMaster.aspx" protection="All" timeout="120" path="/" />
</authentication>

I don't understand why Page_load event is fired twice when the web application starts.

Someone can help me?

back end code:

 using System;
 using System.Collections.Generic;
 using System.Linq;
 using System.Web;
 using System.Web.UI;
 using System.Web.UI.WebControls;

 namespace project
 {
     public partial class TestPage_NoMaster : System.Web.UI.Page
     {
         protected void Page_Load(object sender, EventArgs e)
         {
             String prova = "Hello :)";
         }
     }
 }

UPDATE:

**in the intelliTrace i have some exception: - impossible load file or assembly App_web...filenotfoundException - System.Globalization.CultureNotFoundException **

Luke
  • 517
  • 10
  • 29

0 Answers0