locked
$dvt_nextpagedata empty RRS feed

  • Question

  • Everytime I click next Arrow on a DATAFORMWebpart, it just refreshes the page. It should go to the next set of lists items. Using below code, I think the error was because $dvt_nextpagedata is empty. How can I correct this. Thanks

    Here's the code on ms-paging


    <td nowrap="" class="ms-paging" align="right">
             <xsl:if test="$dvt_firstrow &gt; 1" ddwrt:cf_ignore="1">
        <a>
                 <xsl:attribute name="href">javascript: <xsl:value-of select="ddwrt:GenFireServerEvent('dvt_firstrow={1};dvt_startposition={}')" />;</xsl:attribute>
                 Start</a>
                 <xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">&amp;nbsp;</xsl:text>
                 <a>
                 <xsl:attribute name="href">javascript: history.back();</xsl:attribute>
                 <img src="/_layouts/images/prev.gif" border="0" alt="Previous" />
                 </a>
                 <xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">&amp;nbsp;</xsl:text>
             </xsl:if>
             <xsl:value-of select="$FirstRow" />
              - <xsl:value-of select="$LastRowValue" />
             <xsl:text xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" ddwrt:nbsp-preserve="yes" disable-output-escaping="yes">&amp;nbsp;</xsl:text>
             <xsl:if test="$LastRowValue &lt; $dvt_RowCount or string-length($dvt_nextpagedata)!=0" ddwrt:cf_ignore="1">
        <a>
                 <xsl:attribute name="href">javascript: <xsl:value-of select="ddwrt:GenFireServerEvent(concat('dvt_firstrow={',$NextRow,'};dvt_startposition={',$dvt_nextpagedata,'}'))" />;</xsl:attribute>
                 <img src="/_layouts/images/next.gif" border="0" alt="Next" />
                 </a>
       </xsl:if>
            </td>


    cal_bonjovi
    • Moved by Manish Joshi [MSFT] Monday, January 23, 2012 8:32 PM (From:SharePoint - Development and Programming (pre-SharePoint 2010))
    Wednesday, January 18, 2012 9:26 AM

All replies