Hi everyone,

I'm new here, I'm not that good at English (so, sorry for the errors), I'd like to have some help with login controls, I added a login control inside a content page(based on a masterpage which in turn is based on another one), but it does not work at all, it just refreshes the page(nothing happens) and the password textbox is cleared, besides the ASPNETDB.MDF database is not created, however when I put a login control in a webform based on no masterpage, it works perfectly(database is created), I've been googling about it and found that there might be a problem with the Client ID of the login control, since the name of the control is prefixed with the auto-generated ID of the masterpage,I'm still a beginner with ASP.NET, so I have no idea how to deal with this problem,Here's is the source code for my site
-------------------------------------------------------------
Source code for FrontEnd.MasterPage:
Code:
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title> </title>
<link rel="stylesheet" type="text/css" href="/App_Themes/MasterPage/Styles/base.css" />
<link rel="stylesheet" type="text/css" href="/App_Themes/MasterPage/Styles/layout.css" />
<link rel="shortcut icon" href="/App_Themes/MasterPage/Images/favicon.ico" />
<asp:ContentPlaceHolder ID="Head" runat="server">
</asp:ContentPlaceHolder>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
<Scripts>
<asp:ScriptReference Path="~/Script/BuiltIn/jquery-1.6.4.min.js" />
<asp:ScriptReference Path="~/Script/Custom/base.js" />
</Scripts>
</asp:ScriptManager>
<div class="clear"></div>
<div id="content">
<asp:ContentPlaceHolder ID="cpMainContent" runat="server">
</asp:ContentPlaceHolder>
</div>
</body>
</html>
------------------------------------------------------------
Soruce code for ContentPage.master based on FrontEnd.master:
Code:
<%@ Master Language="C#" MasterPageFile="~/MasterPages/FrontEnd.master" AutoEventWireup="true" CodeFile="ContentPage.master.cs" Inherits="MasterPages_MasterPage" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Head" Runat="Server">
<link rel="stylesheet" type="text/css" href="/App_Themes/ContentPage/Styles/base_cp.css" media="all" />
<asp:ContentPlaceHolder ID="HeadContent" runat="server">
</asp:ContentPlaceHolder>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cpMainContent" Runat="Server">
<asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server">
<Scripts>
<asp:ScriptReference Path="~/Script/Custom/base_cp.js" />
</Scripts>
</asp:ScriptManagerProxy>
<div id="breadcrumbs">
<asp:Label ID="Breadcrumbs" runat="server" Text="" />
<span class="feedback"><a href="">Enviar Comentario</a></span>
</div>
<div class="clear mt10"></div>
<asp:ContentPlaceHolder ID="MainContent" runat="server">
</asp:ContentPlaceHolder>
</asp:Content>
----------------------------------------------------------------
Source code for login page based on ContentPage.master:
Code:
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/ContentPage.master" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Users_Login" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
<div id="left-main">
</div>
<div id="right-main">
<h1>Ingresar y ve tu Cuenta</h1>
Ahun no tienes una cuenta?, que esperas,<a href="">Registrate Ahora</a>
<br />
<asp:Login ID="Login1" runat="server" DestinationPageUrl="~/Default.aspx"
EnableTheming="False" >
</asp:Login>
<asp:LoginStatus ID="LoginStatus1" runat="server" />
</div>
<div class="clear"></div>
<div id="main">
</div>
</asp:Content>
----------------------------------------------------------------
I've also based my login page in just one masterpage but it still does not work(however PlanetWrox login page works nicely[I'm reading Beginning ASP.NET 4 in C# and
VB] and it's also based on a masterpage), So i don't know what's wrong with my website.I figure that there might be a problem with CSS or maybe some IDs. I've red that some people have similar problems with bulit-in controls like the login control, Well, I hope someone can help me thanks in advance
