read the following link [closed]

廉价感情. 提交于 2019-12-14 02:44:03

问题


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&amp;p_Created_x0020_Date=6%2f9%2f2009%208%3a33%3a19%20AM&amp;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


回答1:


Have you tried HttpUnit? It has API for some basic JavaScript




回答2:


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?




回答3:


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.



来源:https://stackoverflow.com/questions/4438519/read-the-following-link

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!