Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Needs Help with HTML Table on ASP Page
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Needs Help with HTML Table on ASP Page

 Post Reply Post Reply
Author
Misty View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 February 2002
Location: United States
Status: Offline
Points: 711
Post Options Post Options   Thanks (0) Thanks(0)   Quote Misty Quote  Post ReplyReply Direct Link To This Post Topic: Needs Help with HTML Table on ASP Page
    Posted: 10 May 2004 at 1:56am

I have created a photo gallery. I am frustrated by how the tables have turned out. I have tried different things, but I have been unable to get the tables to display the way I want them to. You can find this web page at http://www.hotelfloors.com/installations1.asp. I would like for the page to look like http://www.fastshutter.com/main. My photo gallery will only have two pictures per line. I would like for the boxes with the captions to be like http://www.fastshutter.com/main. Can someone please help me with this?

I am going to post parts of my code that are significant:

<table width="514" border="0" cellpadding="0" cellspacing="0">

        <!--DWLayoutTable-->

        <tr>

          <td width="66" height="105">&nbsp;</td>

          <td width="448" valign="top"><div align="left">

               <p><font color="#000000" size="5" face="Arial, Helvetica, sans-serif"><strong>Installations

                 Gallery </strong></font></p>

             </div>

             <div align="left">

<p>&nbsp;</p>

             </div>

             <div align="left">

            

             </div></td>

        </tr>

        <tr>

          <td height="38">&nbsp;</td>

          <td>&nbsp;</td>

        </tr>

        <%

       

      

      If rs.EOF then

     

    %>

        <tr>

          <td>&nbsp;</td>

          <td><font color="#330066" size="2" face="Arial, Helvetica, sans-serif"><strong>There

            are no pictures at this time!</strong></font></td>

        </tr>

        <tr>

Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 10 May 2004 at 4:26am
What happens when you remove

          <td>&nbsp;</td>


Lead me not into temptation... I know the short cut, follow me.
Back to Top
ljamal View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 16 April 2003
Status: Offline
Points: 888
Post Options Post Options   Thanks (0) Thanks(0)   Quote ljamal Quote  Post ReplyReply Direct Link To This Post Posted: 10 May 2004 at 9:08am
The code below should point you in the right direction. I wrote it fast so it may not be totally correct, but should give you an idea.


<%
NumRecords = 0
Do while not rs.EOF
NumRecords = NumRecords + 1
if NumRecords mod 2 = 1 then
Response.Write "<tr><td width=""144""> </td>"
end if
%>
<td valign="top"><a href="ViewInstallation.asp?qryID=<%=rs("PicID")%>"> <img src=../images/<%= rs("thumbnail") %> border="0"></a></td>
<%
rs.MoveNext
if NumRecords mod 2 = 0 or rs.EOF then
Response.Write "</tr>"
rs.Move -(NumRecords mod 2)
Response.Write "<tr><td> </td>"
Response.Write "<td bgcolor=purple width=10 height=20"&_
"align=center"><font color=white size=2"&_
" face=""verdana, arial, helvetica, sans-serif""><b>"&_
rs("Details")&"</b></font></td>"
if NumRecords mod 2 = 0 then
rs.MoveNext
Response.Write "<td bgcolor=purple width=10 height=20"&_
"align=center"><font color=white size=2"&_
" face=""verdana, arial, helvetica, sans-serif""><b>"&_
rs("Details")&"</b></font></td>"
end if
rs.MoveNext
Response.Write "</tr>"
end if
Loop

%>
Back to Top
BoLt View Drop Down
Senior Member
Senior Member


Joined: 20 November 2003
Location: United Kingdom
Status: Offline
Points: 285
Post Options Post Options   Thanks (0) Thanks(0)   Quote BoLt Quote  Post ReplyReply Direct Link To This Post Posted: 10 May 2004 at 10:02am

Hi Misty, I like the photos

Place a link on my site www.kindways.co.uk/focalpoint.htm

If you like to your pics.



Edited by BoLt
BoLt (Computer Engineer)
I suffer from Dyslexia, it means I can not spell to well not that I am thick.

www.welshlens.co.uk
Back to Top
Misty View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 February 2002
Location: United States
Status: Offline
Points: 711
Post Options Post Options   Thanks (0) Thanks(0)   Quote Misty Quote  Post ReplyReply Direct Link To This Post Posted: 10 May 2004 at 1:04pm

Originally posted by ljamal ljamal wrote:

The code below should point you in the right direction. I wrote it fast so it may not be totally correct, but should give you an idea.


<%
NumRecords = 0
Do while not rs.EOF
NumRecords = NumRecords + 1
if NumRecords mod 2 = 1 then
Response.Write "<tr><td width=""144""> </td>"
end if
%>
<td valign="top"><a href="ViewInstallation.asp?qryID=<%=rs("PicID")%>"> <img src=../images/<%= rs("thumbnail") %> border="0"></a></td>
<%
rs.MoveNext
if NumRecords mod 2 = 0 or rs.EOF then
Response.Write "</tr>"
rs.Move -(NumRecords mod 2)
Response.Write "<tr><td> </td>"
Response.Write "<td bgcolor=purple width=10 height=20"&_
"align=center"><font color=white size=2"&_
" face=""verdana, arial, helvetica, sans-serif""><b>"&_
rs("Details")&"</b></font></td>"
if NumRecords mod 2 = 0 then
rs.MoveNext
Response.Write "<td bgcolor=purple width=10 height=20"&_
"align=center"><font color=white size=2"&_
" face=""verdana, arial, helvetica, sans-serif""><b>"&_
rs("Details")&"</b></font></td>"
end if
rs.MoveNext
Response.Write "</tr>"
end if
Loop

%>

It looks like I am on the right track. Please look at the code that I have now. Please look at http://www.hotelfloors.com/installations3.asp. There is an error message so I have not successfully fixed this web page yet. There is a problem with the line of code that is bolded below:

    <%

       

        'Make sure that there are Specials

      If rs.EOF then

     

    %>

        <tr>

          <td>&nbsp;</td>

          <td><font color="#330066" size="2" face="Arial, Helvetica, sans-serif"><strong>There

             are no pictures at this time!</strong></font></td>

        </tr>

        <tr>

          <td>&nbsp;</td>

      

          <%

      end if 

          

If Not rs.EOF then       

Do While Not rs.EOF

  NumRecords = NumRecords + 1

  rs.MoveNext

 

 

Loop

rs.MoveFirst

Do While NOT rs.EOF %>

     <%

NumRecords = 0

Do while not rs.EOF

Back to Top
Misty View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 February 2002
Location: United States
Status: Offline
Points: 711
Post Options Post Options   Thanks (0) Thanks(0)   Quote Misty Quote  Post ReplyReply Direct Link To This Post Posted: 14 May 2004 at 9:54pm
I decided to develop the web page in ASP.Net. It was easier for me to develop the web page in ASP.net. You can find the web page at http://www.hotelfloors.com/installations.aspx. I am still interested in fixing the ASP page for a learning experience.
Back to Top
zonelinks View Drop Down
Newbie
Newbie


Joined: 29 April 2004
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote zonelinks Quote  Post ReplyReply Direct Link To This Post Posted: 20 May 2004 at 2:11am
I have read u'r problem...i'll inform u if i could get a solution to this.........
------------------------
http://www.zonelinks.com
------------------------
The Power Link Dimension







Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.