i want to go to next page of the following link
<a href="javascript: __doPostBack('ctl00$PlaceHolderMain$g_781eb52f_faa9_4d59_9cae_2baec06ac484','dvt_firstrow={51};dvt_startposition={Paged=TRUE&p_Created_x0020_Date=6%2f9%2f2009%208%3a33%3a19%20AM&p_ID=216}');">
<img src="/_layouts/images/next.gif" border="0" alt="Next"></a></td></tr></table></div></td>
how can i go next in java program
Have you tried HttpUnit? It has API for some basic JavaScript
This is just an observation... but from the code you have given, the link is a postback, not an actual "link" in the traditional sense. You will need to click on the link, in the page, in context, for it to do anything meaningful.
Using the code out of context will not (should not) work. The codebehind for that page will determine exactly what will happen when the postback is sent.
In all likeliness, your session has expired and the postback will do nothing...
Do you own/control the page's code? If you do, can you post the ASP and codebehind?
Paged=TRUE&p_Created_x0020_Date=6%2f9%2f2009%208%3a33%3a19%20AM&p_ID=216
I guess Paged,p_Created_Date,p_ID are parameters you need to pass, to go to next page.