[Mono-list] Bug?
Gaurav Vaish
gvaish@iitk.ac.in
Mon, 28 Jan 2002 19:50:42 +0530
This is a multi-part message in MIME format.
------=_NextPart_000_0019_01C1A835.11933E40
Content-Type: text/plain;
charset="Windows-1252"
Content-Transfer-Encoding: 7bit
----- Original Message -----
From: "A Rafael D Teixeira" <rafaelteixeirabr@hotmail.com>
To: <gvaish@iitk.ac.in>; <mono-list@ximian.com>
Sent: Monday, January 28, 2002 19:24
Subject: Re: [Mono-list] Bug?
: The problem is probably in the client side: most browsers (IE surely) clear
: any password field in the form for security reasons. So if you intercept
: ASP.NET output it may be sending the field value, but the browser may be
: clearing it.
Thanks. The suggestion helped me. I do get the values, in the two "Label"'s,
but I still DO NOT get in the text fields (for type=password). It is not
anything specific to IE or NN or any browser. I did a telnet to localhost at
port 80 and requested for the URL. I still get the empty text-box.
This means that the properties are set, but not *DISPLAYED*.
I have attached the aspx file that I used for testing and given below is the
result of console telnet.
Cheers,
Gaurav Vaish
http://mastergaurav.virtualave.net
http://calendar.yahoo.com/mastergaurav
---------------------------------
----------------------------------
HTTP/1.1 200 OK
Server: Microsoft-IIS/5.0
Date: Mon, 28 Jan 2002 14:15:44 GMT
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 941
<html>
<head>
</head>
<body>
<!--
(C) Master Gaurav, 2002
-->
<h3>Testing TextBox Parameters and Behaviour</h3>
<form name="_ctl0" method="post" action="textBox.aspx" id="_ctl0">
<input type="hidden" name="__VIEWSTATE"
value="dDwyNzMzMDIxNDU7dDw7bDxpPDI+Oz47bDx0PDtsPGk8Nz47aTw5P
js+O2w8dDxwPHA8bDxUZXh0Oz47bDxUZXh0Qm94MS5UZXh0ID0gDQpMZXQgbWUgY2hlY2sNCjs+Pjs+O
zs+O3Q8cDxwPGw8VGV4d
Ds+O2w8VGV4dEJveDIuVGV4dCA9IFR5cGUgc29tZSB0ZXh0IGhlcmU7Pj47Pjs7Pjs+Pjs+Pjs+zv/XH
TwzSqeTdSP8/qZYuhy+x
SM=" />
<input name="TextBox1" type="password" maxlength="30" size="25" id="TextBox1"
/><br>
<input name="TextBox2" type="password" maxlength="30" size="25" id="TextBox2"
/><br>
<br>
<input type="submit" name="_ctl1" value="Copy Text to Label" />
<p> </p>
<span id="Label1">TextBox1.Text =
Let me check
</span><br>
<span id="Label2">TextBox2.Text = Type some text here</span>
</form>
</body>
</html>
Connection to host lost.
----------------------------------
------=_NextPart_000_0019_01C1A835.11933E40
Content-Type: application/octet-stream;
name="textBox.aspx"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="textBox.aspx"
<%@ Page Language=3D"C#" %>
<html>
<head>
=20
<script language=3D"C#" runat=3D"server">
void SubmitBtn_Click(Object Sender, EventArgs e)
{
Label1.Text =3D "TextBox1.Text =3D " + TextBox1.Text;
Label2.Text =3D "TextBox2.Text =3D " + TextBox2.Text;
}
void Page_Load(Object sender, EventArgs e)
{
Label1.Text =3D "TextBox1.Text =3D " + TextBox1.Text;
Label2.Text =3D "TextBox2.Text =3D " + TextBox2.Text;
}
</script>
=20
</head>
<body>
<!--
(C) Master Gaurav, 2002
-->
<h3>Testing TextBox Parameters and Behaviour</h3>
<form runat=3D"server">
<asp:TextBox id=3D"TextBox1" TextMode=3D"Password" Columns=3D"25" =
MaxLength=3D"30" runat=3D"server">
Let me check
</asp:TextBox><br>
<asp:TextBox id=3D"TextBox2" TextMode=3D"Password" Text=3D"Type some =
text here" Columns=3D"25" MaxLength=3D"30" runat=3D"server"/><br>
<br>
<asp:Button OnClick=3D"SubmitBtn_Click" Text=3D"Copy Text to Label" =
Runat=3D"server"/>
<p> </p>
<asp:Label id=3D"Label1" Text=3D"Label1" runat=3D"server"/><br>
<asp:Label id=3D"Label2" Text=3D"Label2" runat=3D"server"/>
</form>
=20
</body>
</html>
------=_NextPart_000_0019_01C1A835.11933E40--