Reg: Password field in Charset=UTF-8

  • Thread starter Lakshmi Narayanan
  • Start date
L

Lakshmi Narayanan

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>
 
R

Ray at

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
 
L

Lakshmi Narayanan

Thanx Expert,

its working fine.
-----Original Message-----
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





.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top