Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Assign text value to a textbox password
Message
De
29/05/2006 10:42:56
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Assign text value to a textbox password
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01125663
Message ID:
01125663
Vues:
49
When my texbox is defined with the default, I can do this:
        ' Do we remember the setting
        If oApp.IsCookie("Remember") Then

            ' Username
            loControlTextboxUsername = oApp.oPage.FindControl("Username")
            loControlTextboxUsername.Text = oApp.GetCookie("Username")

            ' Password
            loControlTextboxPassword = oApp.oPage.FindControl("Password")
            loControlTextboxPassword.Text = oApp.GetCookie("Password")
This works for both the Username and the Password. But, as soon as I change the Password textbox control to have TextMode=Password, I can no longer assign a pre-defined text. However, as this level, if I show an alert box of the Text value, it does show it ok. But, on the form the Text value remains empty.

How can I do this?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform