AD

Use code output Forum floor back first X

Forum reply to the list, each message is displayed as "the first X-story", if it is MSSQL, then can be used directly in the SQL statement that ROW_NUMBER (), but the procedure is to use sqlite database, now, do not have that function, his thought for a moment the thought of using procedures to solve, because the page I always use anp control, so I can start .... with anp of the number of records per page attribute the beginning, and in the rep binding event of the control line input X can be the first floor, the key code:

    int x = 0;
    protected void rep1_ItemDataBound(object sender, RepeaterItemEventArgs e)
    {
        if (e.Item.ItemType == ListItemType.AlternatingItem || e.Item.ItemType == ListItemType.Item)
        {
            Literal lit = e.Item.FindControl("litX") as Literal;
            lit.Text = " Section  " + (anpTextList.StartRecordIndex + x).ToString() + " Building  ";
            x++;
        }
    }
标签: sql statement, reply, key code, anp, line input, x story
分类: DotNet
时间: 2010-06-09

相关文章

  1. Use code output Forum floor back the first X

    Forum reply to the list, each message is displayed as "the first X-story", if it is MSSQL, then can ...
  2. Print Havermann tree, the initial realization of the output Kazakhstan code

    package hTreeDemo; import java.awt.Graphics; import java.util.*; import javax.swing.*; /** * Given a string, e ...
  3. Velocity Safety Output Help

    Velocity Safety Output Help * Html output nothing implementation, according to the original formats. He was no ...
  4. The use of JavaEE Code

    package org.xawl.jsj; import java.awt.Color; import java.awt.Font; import java.awt.Graphics; import java.awt.i ...
  5. [Change] Discuz! Forum permit integration with the JSP website

    1. Requirements Requirements: The project site needs and Discuz Forum synchronize login, logout and register. ...
  6. java binary, byte array, character, hexadecimal, BCD code conversion

    * The hex string into byte array * @param hex * @return */ public static byte[] hexStringToByte(String hex) { ...
  7. Tomcat6 source code analysis

    As a Java programmer, if you do not come into contact with open source software, project, or framework, I am a ...
  8. php download code generated txt.word.xls

    php header function, how to use click-connection prompted to download a special file saved solutions in the re ...
  9. php中的四舍五入函数代码(floor函数.ceil函数.round与intval)

    php 中处理浮点数时经常要需要四舍五入.在php 中有两个函数适用于这种情况:floor函数.ceil函数和round函数 floor函数和ceil函数互相搭配起来可以使php 处理的数据更加真实可靠. 一.先来看fl ...
  10. Framework for the design of application experience

    Design Application Framework, a three-year course of study has been learning to master all aspects of J2EE arc ...
  11. Real-time stock data interface Daquan

    http://hi.baidu.com/qqlm/blog/item/31cdcd17593e6102c93d6d32.html Baidu Space | Baidu Home | Login o0 Heaven de ...
  12. Get real-time stock API

    Access to stock data are currently two ways to obtain: 1.http/javascript interface to access data 2.web-servic ...
  13. Jforum secondary development problems and solutions encountered

    Jforum secondary development problems and solutions encountered author: Hua-Feng Deng date: 2010-4-26 Company: ...
  14. Real-time stock data acquisition mode [switch]

    An interface, see the article, turn. Stock data access there are two ways to access the following: 1.http/java ...
  15. javascript decimal places for the treatment of retained

    Transfer from: http://blog.csdn.net/lxh413/archive/2010/02/01/5276584.aspx Often encountered in the developmen ...
  16. Get real-time stock data and stock data interface API

    Stock data for the present two ways to obtain the following: 1.http/javascript interface to access data 2.web- ...
  17. Allow the development of automation: the continuing reconfiguration

    Allow the development of automation: the continuing reconfiguration 2008-08-13 Author: Paul Duvall Source: IBM ...
  18. Rails development system to add WAP support

    Rails in the development of unique WEB achieved considerable success, but the kernel has yet to support WML, t ...
  19. javascript regular expressions review

    JS made a recent project, have seen things that basically do not remember that the Internet is to find some in ...