Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 turn the tables

Author  Topic 

elwoos
Master Smack Fu Yak Hacker

2052 Posts

Posted - 2006-07-05 : 11:01:27
Hi

I have just completed my first nice shiny ASP.NET app which I was very pleased about until I took a look at it using Firefox (and later Opera). The table borders that don't show up in IE are glaringly obviously visible in the other browsers. I've obviously missed something in the HTML (or the table properties) but am unsure what the answer to this is.

To add insult to injury on my nicely laid out tables, the text boxes when viewed from Opera appear to have a width that is connected to the amount of text they are allowed to contain. Anyone know how to correctly make them all the same width?

Many thanks in advance

steve

-----------

Don't worry head. The computer will do all the thinking from now on.

harsh_athalye
Master Smack Fu Yak Hacker

5581 Posts

Posted - 2006-07-05 : 11:04:12
I don't think this forum is right place to discuss ASP.Net apps!


Harsh Athalye
India.
"Nothing is Impossible"
Go to Top of Page

harsh_athalye
Master Smack Fu Yak Hacker

5581 Posts

Posted - 2006-07-05 : 11:18:16
quote:
Originally posted by harsh_athalye

I don't think this forum is right place to discuss ASP.Net apps!


Harsh Athalye
India.
"Nothing is Impossible"



I'm sorry...I take my statement back...I just not seen the forum name!

Harsh Athalye
India.
"Nothing is Impossible"
Go to Top of Page

jen
Master Smack Fu Yak Hacker

4110 Posts

Posted - 2006-07-05 : 23:38:05
is that you maddy?



quote:
Originally posted by harsh_athalye

I don't think this forum is right place to discuss ASP.Net apps!


Harsh Athalye
India.
"Nothing is Impossible"



--------------------
keeping it simple...
Go to Top of Page

karuna
Aged Yak Warrior

582 Posts

Posted - 2006-07-06 : 02:11:54
quote:
Originally posted by elwoos

Hi

I have just completed my first nice shiny ASP.NET app which I was very pleased about until I took a look at it using Firefox (and later Opera). The table borders that don't show up in IE are glaringly obviously visible in the other browsers. I've obviously missed something in the HTML (or the table properties) but am unsure what the answer to this is.

To add insult to injury on my nicely laid out tables, the text boxes when viewed from Opera appear to have a width that is connected to the amount of text they are allowed to contain. Anyone know how to correctly make them all the same width?

Many thanks in advance

steve

-----------

Don't worry head. The computer will do all the thinking from now on.



Did you specify the width explicitly?

Thanks

Karunakaran
Go to Top of Page

elwoos
Master Smack Fu Yak Hacker

2052 Posts

Posted - 2006-07-06 : 03:19:10
quote:
Did you specify the width explicitly?


Without checking I would have said yes but I have just checked

D'oH!! Thanks

Can I use the excuse that I was stunned by this :-
quote:
I don't think this forum is right place to discuss ASP.Net apps!



steve

-----------

Don't worry head. The computer will do all the thinking from now on.
Go to Top of Page

karuna
Aged Yak Warrior

582 Posts

Posted - 2006-07-06 : 04:09:06
Can you post the HTML Code?

Thanks

Karunakaran
Go to Top of Page

elwoos
Master Smack Fu Yak Hacker

2052 Posts

Posted - 2006-07-06 : 07:55:47
OK here's the HTML for the table. After realising my stupidity (see above) it is now better (in firefox anyway) but I will (may) have to live with that. I am more concerned about the lines that are the table cell borders that are showing but it is quite possible I have done something compeletely stupid there too.

Can I blame the hot weather? It's cooler outside than in my office!!



	<table tabIndex="0" style="WIDTH: 610px" borderColor="white" border="0">
<tr>
<td style="WIDTH: 151px">
<asp:Label id="lblUserName" runat="server" Font-Names="Arial">User Name:</asp:Label></td>
<td width="144" align="right"><asp:textbox id="txtUser" MaxLength="50" runat="server" tabIndex="1" Font-Names="Arial" Width="160px"></asp:textbox></td>
<td width="200"><ASP:REQUIREDFIELDVALIDATOR id="Requiredfieldvalidator1" runat="server" ErrorMessage="You must enter a user name"
Display="Static" ControlToValidate="txtUser" Font-Names="Arial"></ASP:REQUIREDFIELDVALIDATOR></td>
</tr>
<tr>
<td style="WIDTH: 151px">
<asp:Label id="lblPassword" runat="server" Font-Names="Arial">Password:</asp:Label></td>
<td width="144" align="right"><asp:textbox id="txtPass" tabIndex="2" MaxLength="10" runat="server" TextMode="Password" Font-Names="Arial"
Width="160px"></asp:textbox></td>
<td width="200"><ASP:REQUIREDFIELDVALIDATOR id="Requiredfieldvalidator2" runat="server" ErrorMessage="You must enter a password"
Display="Static" ControlToValidate="txtPass" Font-Names="Arial"></ASP:REQUIREDFIELDVALIDATOR></td>
</tr>
<TR>
<TD style="WIDTH: 151px">
<asp:Label id="lblConfirm" runat="server" Visible="False" Font-Names="Arial">Confirm Password</asp:Label>
</TD>
<TD width="144" align="right">
<asp:textbox id="txtPassConfirm" tabIndex="3" runat="server" MaxLength="10" TextMode="Password"
Visible="False" Font-Names="Arial" Width="160px"></asp:textbox></TD>
<TD width="200">
<asp:Label id="lblConfirmError" runat="server" ForeColor="Red" Visible="False" Font-Names="Arial">Passwords do not match</asp:Label></TD>
</TR>
<TR>
<TD colSpan="3">
<asp:CheckBox id="chkRememberMe" runat="server" Text="Remember me on this computer" Font-Names="Arial"></asp:CheckBox></TD>
</TR>
<TR>
<TD colSpan="3">
<asp:label id="lblMessage" runat="server" Font-Names="Arial"></asp:label></TD>
</TR>
<TR>
<TD colSpan="2" align="right">
<asp:button id="butLogin" onclick="butLogin_Click" tabIndex="3" runat="server" Width="64px"
text="Login" Font-Names="Arial"></asp:button></TD>
<td width="200"></td>
</TR>
</table>




thanks

steve

-----------

Don't worry head. The computer will do all the thinking from now on.
Go to Top of Page

karuna
Aged Yak Warrior

582 Posts

Posted - 2006-07-06 : 11:38:50
I really dont see much difference between IE and FF. Let me know if I have missed any.. FF version 1.5



Thanks

Karunakaran
Go to Top of Page

elwoos
Master Smack Fu Yak Hacker

2052 Posts

Posted - 2006-07-07 : 04:12:50
OK this is well wierd then. My version of FF was 1.0.7 so I assumed it was that but I have just upgraded and it made no difference. I get lines around the cell

This is what I get in Firefox 1.5


and this is what I get in Opera


IE6 doesn't show those lines

steve

-----------

Don't worry head. The computer will do all the thinking from now on.
Go to Top of Page

karuna
Aged Yak Warrior

582 Posts

Posted - 2006-07-07 : 04:27:02
Talking about wierd, here is one more....
In Opera v 8.x( i think its 8.6)



Steve,
Can you post the code from browser source, rather than asp.net code?
I'll see how it comes on my pc.

Thanks
Karunakaran
Go to Top of Page

elwoos
Master Smack Fu Yak Hacker

2052 Posts

Posted - 2006-07-07 : 07:17:35
My version of Opera will be an older one, possibly 7. Html (taken from Firefox) is

<table tabIndex="0" style="WIDTH: 608px" borderColor="white" border="2">
<tr>
<td style="WIDTH: 151px">
<span id="PICKStartLogin_lblUserName"><font face="Arial">User Name:</font></span></td>

<td width="144" align="right"><input name="PICKStartLogin:txtUser" type="text" maxlength="10" id="PICKStartLogin_txtUser" tabindex="1" /></td>
<td width="200"> </td>
</tr>
<tr>
<td style="WIDTH: 151px">
<span id="PICKStartLogin_lblPassword"><font face="Arial">Password:</font></span></td>
<td width="144" align="right"><input name="PICKStartLogin:txtPass" type="password" maxlength="20" id="PICKStartLogin_txtPass" tabindex="2" /></td>
<td width="200"> </td>

</tr>
<TR>
<TD style="WIDTH: 151px">

</TD>
<TD width="144" align="right">
</TD>
<TD width="200">
</TD>
</TR>

<TR>
<TD colSpan="3">
</TD>
</TR>
<TR>
<TD colSpan="3">
<span id="PICKStartLogin_lblMessage"><font face="Arial"></font></span></TD>
</TR>
<TR>

<TD colSpan="2" align="right">
<input type="submit" name="PICKStartLogin:butLogin" value="Login" onclick="if (typeof(Page_ClientValidate) == 'function') Page_ClientValidate(); " language="javascript" id="PICKStartLogin_butLogin" tabindex="3" /></TD>
<td width="200"></td>
</TR>
</table>


I've just noticed the <table tabIndex="0" style="WIDTH: 608px" borderColor="white" border="2"> which I presume is part of the problem. this is wierd though because it isn't in the ASP. A very distant bell is ringing about when you update user controls, having to relink them into any pages you have used them in. That might explain the border part but not why the lines appear

steve

-----------

Don't worry head. The computer will do all the thinking from now on.
Go to Top of Page

karuna
Aged Yak Warrior

582 Posts

Posted - 2006-07-07 : 07:36:41
quote:
Originally posted by elwoos


I've just noticed the <table tabIndex="0" style="WIDTH: 608px" borderColor="white" border="2"> which I presume is part of the problem. this is wierd though because it isn't in the ASP. A very distant bell is ringing about when you update user controls, having to relink them into any pages you have used them in. That might explain the border part but not why the lines appear
steve

-----------

Don't worry head. The computer will do all the thinking from now on.



Border was the issue, when its 2, I got the same kind of display what you had, when I made it as 0, it worked fine.

Im not sure lines you are talking about..



Thanks
Karunakaran
Go to Top of Page

elwoos
Master Smack Fu Yak Hacker

2052 Posts

Posted - 2006-07-07 : 07:58:55
OK many thanks Karunakaran, the lines I was referring to were obviously border lines butwhat at least partly confused me was the bit on the table in the bottom and the right, though I suppose they are a shadow. I'm just confused now why it is changed in ASP and yet doesn't show in the HTML

cheers

steve

-----------

Don't worry head. The computer will do all the thinking from now on.
Go to Top of Page

karuna
Aged Yak Warrior

582 Posts

Posted - 2006-07-07 : 09:11:20
quote:
Originally posted by elwoos

I'm just confused now why it is changed in ASP and yet doesn't show in the HTML

cheers

steve

-----------

Don't worry head. The computer will do all the thinking from now on.



Thats something interesting... May be something coming from cache?



Thanks
Karunakaran
Go to Top of Page
   

- Advertisement -