Please remember that every time you do a postback you have to repopulate
your recordset. 

It's probably easier to use getrows in this instance. 

This will explain how to do it:
http://www.4guysfromrolla.com/webtech/070500-1.shtml



-----Original Message-----
From: peijanelaw [mailto:[EMAIL PROTECTED] 
Sent: zaterdag 8 mei 2004 11:57
To: [EMAIL PROTECTED]
Subject: [AspClassicAnyQuestionIsOk] move next record

hi everyone,

there are 10 records in rs1, then there is 'Next' button, each time 
click on 'Next' button, the records should movenext one record... i 
have tried the following but fail, please advice, thanks...

numrec=10
i=0

Sub moveid()
If Not i=numrec Then
rs1.movenext
strid=rs1("id").value
i=i+1
End If
End Sub

<input type="submit" value="next" onclick="<% moveid %>" >
<td>
<input type="text" name="empid" size="30" value="<% response.write 
strid %>">
</td>

eg. 001,002,003,004.....010 , so page onload display '001', when 
click 'Next' first time then display '002' , 'Next' again 
display '003' and so on...




 
Yahoo! Groups Links



 



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/saFolB/TM
---------------------------------------------------------------------~->

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/AspClassicAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
     [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/
 

Reply via email to