Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
hi all,
i have a page alignment issue on my page below,
the application i have developed by ASP.NET
the problem is i have a text box
in this text box i have set the textmode in password
my problem is below,
ex:
name =............ // normal textbox (width 168px)without using textmode
pwd =........ // textmode =password (width 168px)

my code is:
XML
<table width="100%">

<tr>
<td colspan="2" align='left' class="txtright" style="width: 45%">
<%--<asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="txtName">*
</asp:RequiredFieldValidator>Name:--%>
Title:
</td><td align="left" style="width: 181px">
<asp:DropDownList ID="drpTitle" runat="server" Width="53px">
<asp:ListItem>Mr</asp:ListItem>
<asp:ListItem>Mrs</asp:ListItem>
<asp:ListItem>Miss</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<td colspan="2" align='left' class="txtright" style="width: 45%">
<%--<asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="txtName">*
</asp:RequiredFieldValidator>Name:--%>
Name:<span style="color:Red">*</span>
</td><td align="left" style="width: 181px">
<asp:TextBox ID="txtName" runat="server" Width="168px" BorderStyle="Solid" BorderColor="Silver"></asp:TextBox>
</td>
</tr>
<tr>
<td align="right" class="txtright" colspan="2">
Surname:<span style="color:Red">*</span>
</td>
<td align="left">
<asp:TextBox ID="txtSurname" runat="server" Width="168px" BorderStyle="Solid" BorderColor="Silver"></asp:TextBox></td>
</tr>
<tr>
<td align="right" class="txtright" colspan="2">

Password:<span style="color:Red">*</span>
</td>
<td align="left">
<asp:TextBox ID="txtPass" runat="server"    Width="168px" BorderStyle="Solid" BorderColor="Silver"></asp:TextBox></td>
</tr>
<tr>
<td align="right" class="txtright" colspan="2">
<%--<asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ControlToValidate="txtSurname">*
</asp:RequiredFieldValidator>Surname:--%>
Confirm Password:<span style="color:Red">*</span>
</td>
<td align="left">
<asp:TextBox ID="txtConfirmPass" runat="server"   Width="168px" BorderStyle="Solid" BorderColor="Silver"></asp:TextBox></td>
</tr>

</table>



the moment is it was working fine on firefox and chrome perfectly
but IE am getting the above alignment issue
actually i was set the both text box width is 168px
if i removed the text mode in password text box then it was working fine for both browser
but when i set text box mode am getting the above issue
so please give me a solution for this because i tried many other way to resolve this issue but am not.

with regards,
stellus.
Posted
Updated 26-Apr-14 1:20am
v2
Comments
DamithSL 26-Apr-14 7:16am    
please update the question with aspx page code
stellus 26-Apr-14 7:21am    
please check my code above
Sampath Lokuge 26-Apr-14 7:21am    
To give a solution, you have to put your html code snippet related to your user name and password ?
Sampath Lokuge 26-Apr-14 7:25am    
Can you quickly set your html code on JsFiddle and let us know the url ?
http://jsfiddle.net/

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900