p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

proasp_howto thread: display URL as part of a recordset rereived from access database


Message #1 by "charles mitchell" <charles@l...> on Thu, 5 Dec 2002 01:17:14
> -----Message d'origine-----
> De : David Cameron [mailto:dcameron@i...]
> Envoy=C3=A9 : mardi 10 d=C3=A9cembre 2002 03:44
> =C3=80 : Pro ASP HowTo
> Objet : [proasp_howto] Re: display URL as part of a recordset
> rereived from access database
>
>
> SEEK, Tang-Fong:
>
> >When you post code, please trim it to the very essential. 
> Those <td> and
> ><font> aren't necessary.  Actually, on doing so, it's good
> for you too to
> >track any bug by yourself.
>
> A novice programmer often "trims" the code in such a way as
> to be useless. As they are not certain what is important they
> can delete important information.

	That's why I wrote out what's not necessary.  I was teaching him.
And as another poster pointed out that he could use CSS, but obviously 
he
didn't know.  My trimmed code should show him what's for format and 
what's
the information.

> The code he posted was 15
> lines longer than your edited code. If he had posted 100
> lines, rather than the 27 than he posted, your comment may
> have been valid.

	Don't count lines.  Count the characters :-)

> John:
> You had an extra </A> tag. Also you have more <font> tags
> than you need. Try this:
>
> Do While Not objRS.EOF
> %>
> <TR>
>  <TD bordercolor=3D"#FFFFFF">
> 	<p align=3D"left"><font face=3D"Times New Roman" size=3D"2"
> color=3D"#000080"><%=3DobjRS("ID")%></font>
> </TD>
>  <TD bordercolor=3D"#FFFFFF">
> 	<p align=3D"left"><font color=3D"#000080" face=3D"Times New
> Roman" size=3D"2"><%=3DobjRS("Dates")%></font>
> </TD>
>  <TD bordercolor=3D"#FFFFFF">
>       <p align=3D"left"><a
> href=3D"<%=3DobjRS("url")%>"><%=3DobjRS("event")%></a>
>  </TD>
>  <TD bordercolor=3D"#FFFFFF">
>       <p align=3D"left"><font face=3D"Times New Roman" size=3D"2"
> color=3D"#000080"><%=3DobjRS("Location")%></font>
> </TD>
>  <TD bordercolor=3D"#FFFFFF">
>       <p align=3D"left"><font  face=3D"Times New Roman" size=3D"2"
> color=3D"#000080"><%=3DobjRS("Contact")%></font>
> </TD>
>  <TD bordercolor=3D"#FFFFFF">
>       <p align=3D"left"><font face=3D"Times New Roman" size=3D"2"
> color=3D"#000080"><%=3DobjRS("Contacttel")%></font>
> </TD>
>
>  </TR>
> <%
>  objRS.MoveNext
>
> regards
> David Cameron
> nOw.b2b
> dcameron@i...
>
> =16=EC=A8=BAZ)*'a=7F=E2=81=B3=C2=BA1r=DA=81
> +=06rz=C7=A7ujy=1E=EF=99=A8^j=E9=AE=86=1A0u=E7=8E=B8v
> =08&
>

  Return to Index