Textbox Hades
Hi,
I'm trying to create a simple login/authenication pair of pages.
My username is: Joseph
My password is: cutitout
My html page is sent by "Post" method.
<form name="form1" method="post" action="authenticate1.aspx">
<input name="txtUser" type="hidden" id="txtUser" value="joseph">
<input name="txtPassword" type="hidden" id="txtPassword" value="cutitout">
<input type="submit" name="Submit" value="Submit">
</form>
On my authentication page which is ASPX, I don't want the fields to show, that way the user won't see the username OR password, I want it to be populated and passed invisibly. It works fine when I write the code like this:
<% txtUser.Text = Request.Form("txtUser") %>
<asp:textbox id="txtUser" runat="server" width="134px""></asp:textbox>
<% txtPassword.Text = Request.Form("txtPassword") %>
<asp:textbox id="txtPassword" runat="server" Width="134px"></asp:textbox></TD>
But if I add: visible = "false" to the asp:texbox line, the authentication fails. Anyone have any ideas? I'm working on a deadline and the alarm on the clock was ringing yesterday.
HELP PLEASE!!!!
|