|
首先,要设置web_set_max_html_param_len("900000");
因为ViewState可能会很大!
其次,记录下ViewState到某个参数,注意"LB/IC=ViewState\",何必在意ViewState1还是ViewState2呢
web_reg_save_param("MyTransaction_ViewState6",
"LB/IC=ViewState\" value=\"",
"RB/IC=\"",
"Ord=1",
"Search=Body",
"RelFrameId=1",
LAST);
然后把整个一个参数传递到ViewState需要的地方
web_submit_data("ThisIsMyPage.aspx_6",
"Action=http://abcd.aspx?dskfks=-sdfksd",
"Method=POST",
"RecContentType=text/html",
"Referer=http://sdfkkskdfksdfkks.aspx",
"Snapshot=t12.inf",
"Mode=HTML",
ITEMDATA,
"Name=__VIEWSTATE",
"Value={MyTransaction_ViewState6}",
ENDITEM,
"Name=MKTDropDown", "Value=U647110", ENDITEM,
"Name=GetLog", "Value=Get Log", ENDITEM,
EXTRARES,
LAST);
这样子,试试看呢? |
|