Pro tricks 2

June 18, 2008 - 12:08 pm

ASP code for Page.asp in “pro”:

If you manage to contruct a simple if and els statement in asp this would not be a problem to construct the page.asp pages for “pro” clients.
Example:

  • To receive the content from a activated ID in the CMS:    
    <% getBloc CMSdocid,CMSlangue,”Info” %>
  • To display the contact form page:
    <% if CMSdocid = “43857″ then %>
    <% getBloc CMSdocid,CMSlangue,”" %>
    <table width=”100%” border=”0″ cellspacing=”0″ cellpadding=”0″>
    <tr>
    <td valign=”top”> <!– #include file=”ContactForm.asp” –> </td>
    </tr>
    </table> <% end if %>
  • To display the photogallery in “pro”:
    <% if CMSdocid = “43856″ then %>
    <% getBloc CMSdocid,CMSlangue,”" %>
    <% getGallery “33776″,CMSlangue,”" %>
    <% end if %>

So for a complete list to display the content and modules in “pro”:

<% if CMSdocid = “43856″ then %>
<% getBloc CMSdocid,CMSlangue,”" %>
<% getGallery “33776″,CMSlangue,”" %>
<% elseif CMSdocid = “43857″ then %>
<% getBloc CMSdocid,CMSlangue,”" %>
<table width=”100%” border=”0″ cellspacing=”0″ cellpadding=”0″>
<tr>
<td valign=”top”> <!– #include file=”ContactForm.asp” –> </td>
</tr>
</table>
<%  else  %>
<% getBloc CMSdocid,CMSlangue,”Info” %>
<% end if %>

As you can see for combining 3 requested content we use the if, then, ifelse, endif statement in ASP page.
Stay up to date for more content code for the upcoming devastating asp code for proximedia.

Leave a Reply

You must be logged in to post a comment.