Hola amigos del foros del web.
Les cuento estoy hace poco entrándome al mundo de asp.net y mssql. Hice un sistema de Inventario y gestión PHP y quiero cambiarlo a ASP. Eh visto algunos tutoriales y se nota bastante amigable ASP pero no eh podido hacer funcionar el loguin que da acceso a una pagina. Estoy perdido no se donde colocar el codigo y que tipo de codigo colocar. Habr si me pueden hechar una mano con esto.
Código:
<%@ Master Language="VB" AutoEventWireup="false" CodeFile="Site.Master.vb" Inherits="Site" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head runat="server">
<title></title>
<link href="~/Styles/Site.css" rel="stylesheet" type="text/css" />
<asp:ContentPlaceHolder ID="HeadContent" runat="server">
</asp:ContentPlaceHolder>
<style type="text/css">
.style1
{
width: 800px;
height: 100px;
}
</style>
</head>
<body>
<form runat="server">
<div class="page">
<div class="header">
<div class="title">
<h1>
<img alt="" class="style1" src="Miembros/Imagenes/logoingreso.jpg" /></h1>
<h1>
Sistema de Inventario M.I.R.
</h1>
</div>
<div class="clear hideSkiplink">
</div>
</div>
<div class="main">
<asp:ContentPlaceHolder ID="MainContent" runat="server">
<p>
<asp:Login ID="ingreso" runat="server" BackColor="#F7F6F3" BorderColor="#E6E2D8"
BorderPadding="4" BorderStyle="Solid" BorderWidth="1px"
DisplayRememberMe="False" Font-Names="Verdana" Font-Size="0.8em"
ForeColor="#333333" Height="164px" LoginButtonText="Accesar al Sistema"
PasswordLabelText="Contraseña:" style="margin-left: 155px"
TitleText="Acceso al sistema de Inventario M.I.R." UserNameLabelText="Usuario:"
Width="525px">
<InstructionTextStyle Font-Italic="True" ForeColor="Black" />
<LoginButtonStyle BackColor="#FFFBFF" BorderColor="#CCCCCC" BorderStyle="Solid"
BorderWidth="1px" Font-Names="Verdana" Font-Size="0.8em" ForeColor="#284775" />
<TextBoxStyle Font-Size="0.8em" />
<TitleTextStyle BackColor="#5D7B9D" Font-Bold="True" Font-Size="0.9em"
ForeColor="White" />
</asp:Login>
<br />
</p>
<p>
</p>
</asp:ContentPlaceHolder>
</div>
<div class="clear">
</div>
</div>
<div class="footer">
</div>
</form>
</body>
</html>