Cita: Donde está el fallo??? Supongo que será alguna chorrada, pero es que soy totalmente novato en esto del .Net
Prueba el siguiente código..: (copy and paste)
Código PHP:
<HTML>
<script language="VB" runat="server">
Sub Page_Load(Sender As Object, E As EventArgs)
Dim usuario as string
Dim password as string
Dim Dominio as string
Usuario = Request.form("usuario")
password = Request.form("password")
dominio = Request.form("dominio")
txtUsername.text = usuario
txtPassword.text = password
txtDomain.text = dominio
End Sub
Sub Login_Click (sender as Object, e as EventArgs)
End Sub
</script>
<body>
<form id="Login" method="post" runat="server">
<P><br>
<asp:Label ID="Label2" Runat="server">Username:</asp:Label>
<asp:TextBox ID="txtUsername" Runat="server"></asp:TextBox><br>
<asp:Label ID="Label3" Runat="server">Password:</asp:Label>
<asp:TextBox ID="txtPassword" Runat="server" TextMode="Password"></asp:TextBox><br>
<asp:Label id="Label1" Runat="server">Domain:</asp:Label>
<asp:TextBox id="txtDomain" Runat="server"></asp:TextBox></P>
<P>
<asp:Button ID="btnLogin" Runat="server" Text="Login" OnClick="Login_Click"></asp:Button><br>
<asp:Label ID="errorLabel" Runat="server" ForeColor="#ff3300"></asp:Label><br>
<asp:CheckBox ID="chkPersist" Runat="server" Text="Persist Cookie" /></P>
</form>
Hice pruebas de forma local y funcionan, cualquier cosa por aqui andamos..
Salu2