Cita:
Iniciado por mdavila
la verdad no entiendo bien lo que queres hacer che....
Código:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="login.aspx.cs" Inherits="login" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Página sin título</title>
<link rel="stylesheet" type="text/css" href="Estilos.css" />
</head>
<body>
<form id="form1" runat="server">
<div id="login">
<!--#include file="ASPlogin.aspx" -->
</div>
</form>
</body>
</html>
Y crearme un archivo ASPlogin.aspx donde solo contenga
Código:
<asp:Label ID="Label1" runat="server" Text="Usuario :"></asp:Label>
<asp:TextBox ID="tb_usuario" runat="server"></asp:TextBox>
<br />
<asp:Label ID="Label2" runat="server" Text="Password :"></asp:Label>
<asp:TextBox ID="tb_password" runat="server" TextMode="Password"></asp:TextBox>
<br />
<asp:Label ID="Label3" runat="server" Text="Label3" ForeColor="Red" Visible="False"></asp:Label>
<asp:Button ID="bt_Codificar" runat="server" OnClick="bt_Codificar_Click" Text="Codificar" Visible="False" />
<asp:Button ID="bt_crear" runat="server" OnClick="bt_crear_Click" Text="Crear Usuario" />
<asp:Button ID="bt_login" runat="server" OnClick="bt_login_Click" Text="Login" /><br />
<asp:Label ID="Label4" runat="server" Text="Label4" Visible="False"></asp:Label>
Quizas asi se vea mas claro, pero NO FUNCIONA.
Entonces como se hace?