Wrox Programmer Forums
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 9th, 2006, 04:22 AM
Authorized User
 
Join Date: Dec 2005
Posts: 61
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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!!!!
 
Old February 9th, 2006, 09:39 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,101
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Why would you pre-populate a username and password?


Hal Levy
Please do your own homework.
I am here to help you, not do it for you.
I do not have sample code for anything





Similar Threads
Thread Thread Starter Forum Replies Last Post
pointing cursor from one textbox to other textbox lakshmi_annayappa ASP.NET 1.0 and 1.1 Basics 2 August 2nd, 2007 03:41 PM
help " in textbox mkb C# 2005 1 October 15th, 2006 03:08 PM
Textbox deontae45 VB.NET 2002/2003 Basics 1 September 25th, 2006 11:26 AM
Masked TextBox & formatting TextBox melvik C# 1 September 22nd, 2003 11:01 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.