.net中ViewState做关联碰到的问题
1.日志中服务器返回<body>
<form name="form1" method="post" action="Default.aspx" id="form1">
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUJNTQ2NTk2MTU3D2QWAgIDD2QWCAIBDw9kFgQeC29ubW91c2VvdmVyBSZ0aGlzLnN0eWxlLmJhY2tncm91bmRDb2xvciA9ICcjRTVGMEZGJx4Kb25tb3VzZW91dAUfdGhpcy5zdHlsZS5iYWNrZ3JvdW5kQ29sb3IgPSAnJ2QCAw8PZBYEHwAFJnRoaXMuc3R5bGUuYmFja2dyb3VuZENvbG9yID0gJyNFNUYwRkYnHwEFH3RoaXMuc3R5bGUuYmFja2dyb3VuZENvbG9yID0gJydkAgUPDxYCHgdUb29sVGlwBQEwZGQCBw8PZBYCHgdvbmNsaWNrBQ9jbG9zZV93aW5kb3coKTtkGAEFHl9fQ29udHJvbHNSZXF1aXJlUG9zdEJhY2tLZXlfXxYCBQhpYl9sb2dpbgUJaWJfbG9nb3V04ZgBlUriSeqNc4ThtoHtPFyLO5E=" />
2.我这样做关联
web_reg_save_param("ViewState",
"LB=__VIEWSTATE\" value=\"",
"RB=\"",
"Ord=ALL",
"Search=Body",
"RelFrameId=1",
LAST);
web_set_max_html_param_len("20000");
3.为什么老提示我找不到呢
Action.c(22): Error -26377: No match found for the requested parameter "MyViewState". Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 20000 bytes, use web_set_max_html_param_len to increase the parameter size
Action.c(22): web_url("treeItemBgCur.gif") highest severity level was "ERROR", 88 body bytes, 248 header bytes 用自动关联处理了,结贴
页:
[1]