 |
Sample
Code Conversion |
 |
 |
| |
Examples of some common CFM Tag conversion. |
| CFM |
ASP |
| <cfabort> |
<% response.end %> |
| <cfif x GT 5> |
<% if x > 5 then %> |
| <cfoutput query="dblist"> |
<% do while not dblist.eof %> |
|
|
|
| |
Examples of Function syntax conversion. |
| CFM |
ASP |
| <cfset time = now()> |
<% time = now() %> |
| <cfoutput>#cos(0.333)#</cfoutput> |
<%=cos(0.333)%> |
| <cfset Lname = trim(#form.lastname#)> |
<%
Lname = trim(Request.Form("lastname"))
%>
|
|
|
|
| |
Examples of Variable reference conversion. |
| CFM |
ASP |
| #form.name# |
<%=Request.Form("name")%> |
| #url.name# |
<%=Request.Querystring("name")%> |
| #session.name# |
<%=Session("name")%> |
|
|
|
|
|
|
 |
Download |
 |
|
|
|