473,441 Members | 1,469 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,441 software developers and data experts.

Value property for password HTML server control

Hello,

Normally default values for passwords are left unspecified. However, the
XHTML standard allows them for all I know, so I decided to try coding the
following ASP.NET HTML server control on the page I am writing for testing:

<input id="password" type="password" value="foo" runat="server" />

Much to my surprise, when the input element has the runat attribute as
described above, it seems like the ASP.NET Web Matrix server (or should
I say the ASP.NET application framework?) strips away the value field
from the HTML output.

Why is the value attribute being stripped off in the
output sent to the web browser?

Thanks,

Neil
Nov 19 '05 #1
2 1191
Hi,

I think it is a property of ASP.NET to strip off the values of password
field. When you type password in any form and the form is sent back to
browser and returns again, all the fields will be the same, but the password
field is stripped off.

Prakash.C

"Neil Zanella" wrote:
Hello,

Normally default values for passwords are left unspecified. However, the
XHTML standard allows them for all I know, so I decided to try coding the
following ASP.NET HTML server control on the page I am writing for testing:

<input id="password" type="password" value="foo" runat="server" />

Much to my surprise, when the input element has the runat attribute as
described above, it seems like the ASP.NET Web Matrix server (or should
I say the ASP.NET application framework?) strips away the value field
from the HTML output.

Why is the value attribute being stripped off in the
output sent to the web browser?

Thanks,

Neil

Nov 19 '05 #2
It's a security feature to avoid putting a password in plain text where someone
could snoop it by viewing the html source...

--
Scott
http://www.OdeToCode.com/blogs/scott/
Hello,

Normally default values for passwords are left unspecified. However,
the XHTML standard allows them for all I know, so I decided to try
coding the following ASP.NET HTML server control on the page I am
writing for testing:

<input id="password" type="password" value="foo" runat="server" />

Much to my surprise, when the input element has the runat attribute as
described above, it seems like the ASP.NET Web Matrix server (or
should I say the ASP.NET application framework?) strips away the value
field from the HTML output.

Why is the value attribute being stripped off in the output sent to
the web browser?

Thanks,

Neil

Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Chris Scragg | last post by:
Hi all: Through a Session variable, I am populating among other things the password field in a user's profile page (the Webform); this.TextBoxConfirmPassword.Text = Convert.ToString(Session);...
1
by: Matthew Louden | last post by:
Personally, I am totally confused with the following control terms and usage and advantages of each one in ASP.NET web application. Here's what I know so far.. 1. HTML Client Control: understood...
0
by: | last post by:
any one know how to add html server control from visual studio .net at runtime .....
1
by: Stuart | last post by:
Hi there I am trying to introduce some dynamic control focus in to my asp application by turning the <body> of the aspx file in to an HTML Server control. I have read elsewhere that if you...
5
by: serge calderara | last post by:
Dear all, I am new in asp.net and prepare myself for exam I still have dificulties to understand the difference between server control and HTML control. Okey things whcih are clear are the fact...
0
by: Rene Aichinger | last post by:
Hi, I've created a server control (it inherits from WebControl) wich has a property of genertic collection type. The type of the generic collection is NavigationItem, a little class I've...
1
by: Charles Zhang | last post by:
I created a custom server control that derives from WebControl. I found Parent and Page property are null for the control I created. But Parent is a readonly property so that I have no way to...
2
by: vinodkus | last post by:
Can any one tell me how an html server control can be used in .CS
0
by: rote | last post by:
When using the PassWord recvovery server control do we need to set the enablePasswordRetrieval attribute to false or True of the configured membership?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.