[thelist] ASP Problems again..

Chris Blessing webguy at mail.rit.edu
Thu Oct 31 09:26:01 CST 2002


Actually, since the write() method of the response object isn't a real
function (it's really just a procedure since it doesn't return something),
you shouldn't use the parenthesis... but VBS is so incredibly flexible,
it'll let you get away with it. :)

And I always use spaces before the = sign in this type of block:

<% = someVar %>

Just easier on the eyes IMO.

Chris Blessing
webguy at mail.rit.edu
http://www.330i.net

>
> Could it be that you are missing some brackets..
>
>       [ Page Number<%response.write iPage %> out of <%
> response.write intTotalPages%>]
>
> should be..
>
>       [ Page Number<%response.write(iPage) %> out of <%
> response.write(intTotalPages)%>]
>
> To save time you could also use....
>
>       [ Page Number<%= iPage %> out of <%= intTotalPages%>]
>
> Also, I'm not sure if it makes much difference, but...
>
>        <a href="showimage.asp?ipage=<% = (iPage+1) %>">
>
> would be better as..
>
>        <a href="showimage.asp?ipage=<%= (iPage+1) %>">
>                                       ^ space removed
>
> Hope that helps.
>
>
> Cheers,
>
> Julian Voelcker
> Cirencester, United Kingdom




More information about the thelist mailing list