Realization of the number of in the forum

xiaoxiao2021-03-06  19

In some forums, some words, such as "building" "first floor", can also be easily implemented in the ASP.NET Forum. It is some ways. The steps are as follows:

In CS:

Protected int T = -1; // Calculate the number of buildings, define an initial variable

Public String Lou (INT i) // Implement the landlord and the first floor. For the front desk to display {if (i == - 1) // Judgment the landlord Return "," Else Return " T.toString () " " " ";

Call: <% # lou (t )% in the front desk page: <%

This will display the following:

Author: passing

Landlord

Published: 2005-3-17 12:01:01 Click: 3 times

HEHE

EN

Author: passing

1st Floor

Published: 2005-3-17 12:01:10 Click: 0 times

Saf

SDF

转载请注明原文地址:https://www.9cbs.com/read-44316.html

New Post(0)