469,917 Members | 1,861 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,917 developers. It's quick & easy.

Reg: Password field in Charset=UTF-8

Hi experts,
My problem is, for password <input name="password"
type="password"> element the size given is 20. For another
one <input name="username"> is also 20. But in browser the
size differs for Charset="UTF-8" only. How to make equal
in display?

the sample is here:

<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<%response.Charset="UTF-8"%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
</head>

<body>
<form name="test">
<table width="50%" align="center">
<tr bgcolor="#FEFFF2">
<td colspan="3" class="maintextbold"><div
align="center"><strong>Login Test</strong></div></td>
</tr>
<tr bgcolor="#FEFFF2">
<td width="35%" class="maintextbold"><div
align="right">User Name</div></td>
<td width="4%">&nbsp;</td>
<td width="61%"><input name="username" type="text"
size="20" maxlength="20" autocomplete="off"></td>
</tr>
<tr bgcolor="#FEFFF2">
<td ><div align="right">Password</div></td>
<td>&nbsp;</td>
<td><input name="password" type="password"
id="password" size="20" maxlength="20"></td>
</tr>
<tr >
<td colspan="3" > <div align="center">
<input type="submit" name="Submit" value="Submit">
</div></td>
</tr>
</table>
</form>
</body>
</html>

Jul 19 '05 #1
3 3869
This isn't an ASP issue. It's a browser issue. Use css to control the
width.

For example:
<input name="username" type="text" style="width: 150px;" maxlength="20"
autocomplete="off">
<input name="password" type="password" id="password" style="width: 150px;"
maxlength="20">

Also, without UTF-8, the sizes still vary in IE6.

Ray at home

"Lakshmi Narayanan" <la******@yahoo.co.in> wrote in message
news:d6****************************@phx.gbl...
Hi experts,
My problem is, for password <input name="password"
type="password"> element the size given is 20. For another
one <input name="username"> is also 20. But in browser the
size differs for Charset="UTF-8" only. How to make equal
in display?

the sample is here:
<td width="61%"><input name="username" type="text" size="20" maxlength="20" autocomplete="off"></td>

Jul 19 '05 #2
Thanx sir,

You style is working. with regards

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #3
Thanx Expert,

its working fine.
-----Original Message-----
This isn't an ASP issue. It's a browser issue. Use css to control thewidth.

For example:
<input name="username" type="text" style="width: 150px;" maxlength="20"autocomplete="off">
<input name="password" type="password" id="password" style="width: 150px;"maxlength="20">

Also, without UTF-8, the sizes still vary in IE6.

Ray at home

"Lakshmi Narayanan" <la******@yahoo.co.in> wrote in messagenews:d6****************************@phx.gbl...
Hi experts,
My problem is, for password <input name="password"
type="password"> element the size given is 20. For another one <input name="username"> is also 20. But in browser the size differs for Charset="UTF-8" only. How to make equal
in display?

the sample is here:

<td width="61%"><input name="username" type="text"
size="20" maxlength="20" autocomplete="off"></td>

.

Jul 19 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

35 posts views Thread by The Bicycling Guitarist | last post: by
3 posts views Thread by John S | last post: by
1 post views Thread by burnsy2000 | last post: by
kaleeswaran
2 posts views Thread by kaleeswaran | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.