修改
function PageCurrent()
{ //Pages.asp是本程序的文件名
<%url=server.urlencode("&name=" & name & "& address=" & address)%>
document.MyForm.action='move9.asp?Page='+(document.MyForm.CurrentPage.selectedIndex+1)<%=url%>
document.MyForm.submit();
}  
看看

解决方案 »

  1.   

    多了一个空格,在看看,什么错误?
    function PageCurrent()
    { //Pages.asp是本程序的文件名
    <%url=server.urlencode("&name=" & name & "&address=" & address)%>
    document.MyForm.action='move9.asp?Page='+(document.MyForm.CurrentPage.selectedIndex+1)<%=url%>
    document.MyForm.submit();
    }  
      

  2.   

    给你个jsp的例子吧
    <%@ page contentType="text/html;charset=gb2312" language="java" isErrorPage="true"%>
    <%
      response.setHeader("Pragma","No-cache");
      response.setHeader("Cache-Control","no-cache");
      response.setDateHeader("Expires", 0);
    request.setCharacterEncoding("gb2312");
    %>
    <%@ page import="java.sql.*"%>
    <%@ page import="java.util.*"%>
    <!--&#65397;&#65411;JavaBean-->
    <jsp:useBean id="TableAccess" scope="page" class="com.jspdev.util.DataBase"/>
    <%
    Connection conn = null;
    int PAGE_SIZE = 5;
    int intPageCount = 0;
    int intCurPage = 1;
    int intBegin = 0;
    int intEnd = 0;
    ArrayList arrayProduct = new ArrayList();
    ArrayList arrayType = new ArrayList();String strTypeR = request.getParameter("Type");
    String strSearch = request.getParameter("Search");
    if(strSearch != null){
    strSearch = strSearch.replaceAll("'","''");
    }//&#65397;&#65393;&#65415;&#65392;&#65419;&#65434;&#65426;&#65395;
    String strPage = request.getParameter("Page");
    if(strPage == null || strPage.equals("") || strPage.equals("0")) strPage = "1";try{
    //&#65409;&#65388;&#65405;&#65427;&#65418;&#63729;&#65406;&#65437;&#65407;&#12539;
    conn = TableAccess.databaseConnection();
    //SQL
    String strSql = "SELECT * FROM Products";
    if(strTypeR != null && !strTypeR.equals("")){
    strSql = strSql + " WHERE Type=" + strTypeR;
    }else if(strSearch != null && !strSearch.equals("")){
    strSql = strSql + " WHERE (Name LIKE '%" + strSearch + "%'";
    strSql = strSql + " OR Content LIKE '%" + strSearch + "%')";
    }

    String strSqlT = "SELECT * FROM ProductType";
    //&#65430;&#65396;&#65424;&#65424;SQL&#65427;&#12539;&#12539;
    arrayProduct = TableAccess.getRecordset(conn,strSql);
    arrayType = TableAccess.getRecordset(conn,strSqlT);
    //&#65398;&#65423;&#65407;&#65386;&#65418;&#63729;&#65406;&#65437;&#65407;簔&#65388;&#65405;&#65427;
    TableAccess.databaseDisconnect(conn); //&#65431;&#65436;&#65426;&#65395;&#65418;&#63729;
    if(arrayProduct.size() % PAGE_SIZE == 0){
    intPageCount = arrayProduct.size()/PAGE_SIZE;
    }else{
    intPageCount = arrayProduct.size()/PAGE_SIZE + 1;
    }
    //&#65397;&#65393;&#65415;&#65392;&#65426;&#65395;
    intCurPage = Integer.parseInt(strPage); if(intCurPage >= intPageCount && intPageCount > 0){
    intCurPage = intPageCount;
    }else{
    intCurPage = 1;
    }
    intBegin = (intCurPage - 1) * PAGE_SIZE;
    if(intBegin + PAGE_SIZE <= arrayProduct.size()){
    intEnd = intBegin + PAGE_SIZE;
    }else{
    intEnd = arrayProduct.size();
    }}catch(Exception e){
    out.println(e);
    }
    %>
    <HTML>
    <HEAD>
    <TITLE>&#65394;鰉&#65391;&#65417;&#65420;&#65414;&#65399;</TITLE>
    <LINK rel="stylesheet" href="../css/style.css" type="text/css">
    <Script Language="JavaScript" src="../js/commonFunction.js"></Script>
    <SCRIPT LANGUAGE="JavaScript">
    <!--
    function AddToBasket(val){
    var win = window.open("MobileToBasket.jsp?Product="+val,"basket","toolbar=0,scrollbars=0,width=300,height=200,top=200,left=300");
    }
    function SubmitForm(val){
    pstForm.Type.value = val;
    pstForm.action = "MobileEdition.jsp";
    pstForm.submit();
    }
    function Go(pageNum){
    pstForm.Page.value = pageNum;
    pstForm.submit();
    }
    //-->
    </SCRIPT>
    </HEAD>
    <BODY leftmargin=0 topmargin=0 onKeyDown="return BodyEventKey();">
    <FORM METHOD=POST ACTION="" NAME="pstForm">
    <jsp:include page="header.jsp"/>
    <TABLE Align=center cellspacing=0 cellpadding=0>
    <TR>
    <TD valign=top>
    <TABLE Align=center border=1 bordercolor="#666699" bordercolordark="#FFFFFF" cellspacing=0 cellpadding=0 width="130px">
    <TR bgcolor="666699">
    <TH>&#65394;憘&#65399;&#65411;&#12539;/TH>
    </TR>
    <% 
    for(int i = 0; i < arrayType.size(); i++){
    HashMap map = (HashMap)arrayType.get(i);
    String strID = (String)map.get("ID");
    String strType = (String)map.get("TypeName");
    %>
    <TR>
    <TD title="&#65394;鯀&#65396;&#65423;&#12539;&#65400;&#65431;&#65418;&#65409;&#65423;"><A Href="javascript:SubmitForm('<%=strID%>')"><%=strType%></A></TD>
    </TR>
    <% } %>
    <INPUT TYPE="hidden" NAME="Type">
    </TABLE>
    </TD>
    <TD valign=top>
    <TABLE Align=center border=1 bordercolor="#666699" bordercolordark="#FFFFFF" cellspacing=0 cellpadding=0 width="650px">
    <% 
    for(int i = intBegin; i < intEnd; i++){
    HashMap map = (HashMap)arrayProduct.get(i);
    String strID = (String)map.get("ID");
    String strName = (String)map.get("Name");
    String strPinlv = (String)map.get("PinLv");
    String strVolume = (String)map.get("Volum");
    String strWeight = (String)map.get("Weight");
    String strDate = (String)map.get("SDate");
    String strContent = (String)map.get("Content");
    String strImage = (String)map.get("Image");
    %>
    <TR bgcolor="666699">
    <TH><%=strName%></TH>
    </TR>
    <TR>
    <TD>
    <TABLE cellspacing=0 cellpadding=0 bgcolor="666699" border=1 bordercolor=666699 bordercolordark="#FFFFFF" width=100%>
    <TR>
    <TD rowspan=5 bgcolor=ffffff align=center><img src="<%=strImage%>"></TD>
    <TD width=15%>&#65421;酥&#65397;&#65410;&#65418;:</TD>
    <TD bgcolor="#FFFFFF" width=30%><%=strPinlv%></TD>
    <TD width=15%>&#65395;&#65439;&#65396;&#12539;&#65420;蟒&#63729;:</TD>
    <TD  bgcolor="#FFFFFF" width=30%><%=strVolume%></TD>
    </TR>
    <TR>
    <TD>&#65430;&#65432;&#65377;&#65377;&#65409;&#65407;:</TD>
    <TD  bgcolor="#FFFFFF"><%=strWeight%></TD>
    <TD>&#65417;&#65423;&#65418;&#65424;&#65418;&#65393;&#65404;&#12539;</TD>
    <TD  bgcolor="#FFFFFF"><%=strDate.substring(0,10)%></TD>
    </TR>
    <TR>
    <TD>&#65401;&#65382;&#65412;&#65436;:</TD>
    <TD colspan=3 bgcolor="#FFFFFF"><%=strContent%></TD>
    </TR>
    <TR>
    <TD colspan=4 bgcolor="#FFFFFF" align=right><img src="../img/buy.gif" style="cursor:hand" onClick="javascript:AddToBasket('<%=strID%>')"><A Href="javascript:AddToBasket('<%=strID%>')">&#65404;&#65427;&#65416;&#12539;&#65402;&#65422;&#12539;&#65402;</A></TD>
    </TR>
    </TABLE>
    </TD>
    </TR>
    <% } %>
    </TABLE><br>
    <TABLE cellspacing=0 cellpadding=0 width="100%" align=center border=1 bordercolordark=ffffff bordercolorlight=000000>
    <TR>
    <TD background="../img/11.gif" align=center>
    &#65431;&#65436;&#65401;&#65394;<%=intPageCount%>&#65426;&#65395;,&#65397;&#65393;&#65415;&#65392;&#65428;&#65434;&#65397;&#65434;<%=intCurPage%>&#65426;&#65395;,
    <img src="../img/prev.gif" class="button" onClick="Go('<%=intCurPage-1%>')"> 
    || <img src="../img/next.gif" class="button" onClick="Go('<%=intCurPage+1%>')">,
    &#65431;&#65386;&#65397;&#65405;&#65397;&#65434;<INPUT TYPE="text" NAME="Page" value="<%=intCurPage%>" maxlength=3 size=3 class="border" onKeyPress="return NumberInput();">&#65426;&#65395;
    <img src="../img/go.gif" class="button" onClick="javascript:pstForm.submit();">
    </TD>
    </TR>
    </TABLE>
    </TD>
    </TR>
    </TABLE>
    <jsp:include page="footer.inc"/>
    </FORM>
    </BODY>
    </HTML>