J
Jeff
hi
asp.net 2.0
Below is some markup I have trouble with. The problem is that the Textbox
doesn't fill the entire DataCell.
I've set width of TextBox to 100%.... The point is that I want the * to be
aligned exactly at the right corner of the TextBox. As it is now there is a
huge space between them, maybe 30px
<asp:Table ID="tblEditUser" runat="server" Width="370" BackColor="Gainsboro"
CssClass="columnRight">
<asp:TextBox ID="txtName" runat="server"
Width="100%"></asp:TextBox>
</asp:TableCell>
<asp:TableCell Width="20" BackColor="LavenderBlush">
<asp:RequiredFieldValidator ID="valRequireName"
runat="server"
ErrorMessage="Name is required"
ControlToValidate="txtName">*</asp:RequiredFieldValidator>
</asp:TableCell>
</asp:TableRow>
Those colors above is just debug info, I want to see where each DataCell is
any suggestions?
asp.net 2.0
Below is some markup I have trouble with. The problem is that the Textbox
doesn't fill the entire DataCell.
I've set width of TextBox to 100%.... The point is that I want the * to be
aligned exactly at the right corner of the TextBox. As it is now there is a
huge space between them, maybe 30px
<asp:Table ID="tblEditUser" runat="server" Width="370" BackColor="Gainsboro"
<asp:TableCell Width="200" BackColor="GhostWhite"Name:</asp:TableCell>
CssClass="columnRight">
<asp:TextBox ID="txtName" runat="server"
Width="100%"></asp:TextBox>
</asp:TableCell>
<asp:TableCell Width="20" BackColor="LavenderBlush">
<asp:RequiredFieldValidator ID="valRequireName"
runat="server"
ErrorMessage="Name is required"
ControlToValidate="txtName">*</asp:RequiredFieldValidator>
</asp:TableCell>
</asp:TableRow>
Those colors above is just debug info, I want to see where each DataCell is
any suggestions?