CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> .NET

 Format text field to display *****

Print topic Send  topic

Author Message
LV
Posted: 12/08/2005, 10:25 AM

I have an editable grid view with a password field displayed, how can I format this field to display ******* instead of the actual field value.

Thanks in advance for any help.
E43509

Posts: 283
Posted: 12/08/2005, 10:27 AM

In CCS IDE, click on the field, go to properties/format and set the type to password.
View profile  Send private message
LV
Posted: 12/08/2005, 10:45 AM

Thanks,

I have two issues when turn the Type to Password.
1) My grid view Password now show blank in this field (I can live with this problem, at least my user can't see other's password value)
2) I tried to edit a record in the list, click on submit now, all other records Password reset to blank???? Any thought on this?

:(
Stan
Posted: 12/09/2005, 12:05 AM

This is standard behaviour of the .NET password control. Such scheme is selected by MS considering security issues. Otherwise password can be easy stollen via View Page Source browser function.

LV
Posted: 12/09/2005, 6:47 AM

Thanks Stan,

That's what Yes support answer to me. Came from a Windows app dev I am still trying to learn the .NET environment.
Tuong Do
Posted: 12/19/2005, 2:18 PM

Hi LV,

Have the password field hidden and then have a temppassword field which
intial blank then on the before update or before insert check the
temppassword field for any value, if there is a value in the temppassword
field then assign it to the hidden password.



"LV" <LV@forum.codecharge> wrote in message
news:843987a8562a6a@news.codecharge.com...
>I have an editable grid view with a password field displayed, how can I
>format
> this field to display ******* instead of the actual field value.
>
> Thanks in advance for any help.
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

LV
Posted: 12/21/2005, 6:06 AM

Thanks to all that reply to my original post.

Anyway, here is the solution.

- Create a Form to allow user edit the record with the password field.
- In the Control Format Properties make sure it change to password type, this option will show the ******** in the password rather than the actual password created.
- Add an Event BeforeShow to the Form in the sample code below the Users1 is the Form name and the user_password is the Data field/Control. That's all to it, now Admin users can go back and forth between records, they can change the password for other users but they won't be able to see what's there. :-)

'Record users1 Event BeforeShow. Action Custom Code @53-73254650
' -------------------------
' Write your own code here.
Users1user_password.Attributes.Add("Value", Users1user_password.Text)
' -------------------------
'End Record users1 Event BeforeShow. Action Custom Code

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.