Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
|
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 December 6th, 2007, 12:05 PM
Authorized User
 
Join Date: Nov 2007
Posts: 67
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Hughesie78
Default prevent user logon and password from saving

Hi,
I have a logon,aspx page, I want to add some functionality to prevent any saving of the user logon name and password, any ideas?
code:
    <table>
        <tr>
                    <td>
                        Logon:</td>
            <td><input id="UserName" type="text" runat=server/></td>
            <td><ASP:RequiredFieldValidator
                 ControlToValidate="UserName"
                 Display="Static"
                 ErrorMessage="*"
                 runat="server" ID=UserValidator/>

            </td>
            <td><asp:RegularExpressionValidator id="RegexValidator"
                 ControlToValidate="UserName"
                 ValidationExpression="^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$"
                 EnableClientScript="false"
                 Display="Static"
                 ErrorMessage="Invalid format for e-mail address."
                 runat="server" Enabled=false/>
            </td>
        </tr>
        <tr>
                    <td>Password:</td>
            <td><input id="UserPass" type=password runat=server/></td>
            <td><ASP:RequiredFieldValidator ID="RequiredFieldValidator1"
                 ControlToValidate="UserPass"
                 Display="Static"
                 ErrorMessage="*"
                 runat="server"/>
            </td>
        </tr>

    </table>
__________________
Thank You
 
Old December 6th, 2007, 12:20 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Not sure what you mean. You can prevent the user's logon information from being presisted over multiple sessions by not creating a cookie on their machine, however, if the user has set up their browser to remember usernames and passwords you can't really prevent that.

hth.

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
.: Wrox Technical Editor :.
Wrox Books 24 x 7
================================================== =========





Similar Threads
Thread Thread Starter Forum Replies Last Post
One user getting logon screen digby_dog Access 4 August 6th, 2007 12:44 PM
Prevent user input while JS executes matty1stop BOOK: Professional JavaScript for Web Developers ISBN: 978-0-7645-7908-0 0 November 17th, 2005 10:35 AM
Obtaining User Logon dearnne Access 1 September 2nd, 2004 01:39 PM
prevent saving of images silver_cuts Classic ASP Basics 16 June 29th, 2004 02:39 AM
"Prevent User " javauniverse Pro VB Databases 3 January 9th, 2004 05:07 PM





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