Showing posts with label textmode. Show all posts
Showing posts with label textmode. Show all posts

Wednesday, March 28, 2012

Text Box?

Hi
Is it possible to display text box that has TextMode set to MultiLine
and Rows to 5 for example and not to show vertical scroll bar
Thanks
Alex

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!This is achieve by the style attribute OVERFLOW
>--Original Message--
>Hi
>Is it possible to display text box that has TextMode set
to MultiLine
>and Rows to 5 for example and not to show vertical scroll
bar
>Thanks
>Alex
>*** Sent via Developersdex http://www.developersdex.com
***
>Don't just participate in USENET...get rewarded for it!
>.
Thanks

acko

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Tuesday, March 13, 2012

TextBox and Passwords

Hi,

When you set a textbox's TextMode to password, does this just stop the
password being displayed on the client machine or does it send the data to
the server encrypted.

Cheers

gwcNo it just means that it renders an HTML input tag of type password instead
of of type text, so it displays *** instead of the text you enter into it.
No encryption takes place.

"Gary Coutts" wrote:

Quote:

Originally Posted by

Hi,
>
When you set a textbox's TextMode to password, does this just stop the
password being displayed on the client machine or does it send the data to
the server encrypted.
>
>
Cheers
>
gwc
>
>
>


So does that mean that the password data is sent as plaintext back to the
server on a postback.

How do you protected against this data being snooped. As I presume to
encrypt it the data needs to be sent to the server for encryption.

"clickon" <clickon@.discussions.microsoft.comwrote in message
news:53724A74-9451-4B14-AC50-0E16034018A4@.microsoft.com...

Quote:

Originally Posted by

No it just means that it renders an HTML input tag of type password
instead
of of type text, so it displays *** instead of the text you enter into it.
No encryption takes place.
>
"Gary Coutts" wrote:
>

Quote:

Originally Posted by

>Hi,
>>
>When you set a textbox's TextMode to password, does this just stop the
>password being displayed on the client machine or does it send the data
>to
>the server encrypted.
>>
>>
>Cheers
>>
>gwc
>>
>>
>>


Hi,

Gary Coutts wrote:

Quote:

Originally Posted by

So does that mean that the password data is sent as plaintext back to the
server on a postback.


Yes, that's correct.

Quote:

Originally Posted by

How do you protected against this data being snooped. As I presume to
encrypt it the data needs to be sent to the server for encryption.


That's what SSL (HTTPS) is for.

HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
Yes the password is sent plain text. to encrypt it you need to use SSL on
the server.

"Gary Coutts" wrote:

Quote:

Originally Posted by

So does that mean that the password data is sent as plaintext back to the
server on a postback.
>
How do you protected against this data being snooped. As I presume to
encrypt it the data needs to be sent to the server for encryption.
>
>
>
>
"clickon" <clickon@.discussions.microsoft.comwrote in message
news:53724A74-9451-4B14-AC50-0E16034018A4@.microsoft.com...

Quote:

Originally Posted by

No it just means that it renders an HTML input tag of type password
instead
of of type text, so it displays *** instead of the text you enter into it.
No encryption takes place.

"Gary Coutts" wrote:

Quote:

Originally Posted by

Hi,
>
When you set a textbox's TextMode to password, does this just stop the
password being displayed on the client machine or does it send the data
to
the server encrypted.
>
>
Cheers
>
gwc
>
>
>


>
>
>

Textbox and PostBack

I have two textboxes on a web form (actually many other controls also, but that is not important), one has the Textmode set to "Password". When a PostBack event occurs, the page repaints normally, except that the textbox with the password is now blank, the other textbox retains it's info. How do I prevent this textbox from loosing it's text?

thanks in advance

tomJudging by my tests, you can't.

It is the nature of a password textbox to never show its content on page load. (For good reason, too.)
Hum, this a absolutely normal. It's not right if you're password is displayed in the textbox after a postback. Only one personn can display, type a password : the owner. So the control has been implemented with this logic.