|
用户登录后,会生成一个userid,点击其他的页面时url中会出现对应的userid,对登录的用户进行了参数化,实际情况中,点击其他的页面时userid也应该对应变,那怎么能在url中动态的去取userid的值呢。
web_submit_data("Login.aspx_2",
"Action=http://fxldxm.2011.teacher.com.cn:8080/feixueli2011Admin/Login/Login.aspx",
"Method=POST",
"RecContentType=text/html",
"Referer=http://fxldxm.2011.teacher.com.cn:8080/feixueli2011Admin/Login/Login.aspx",
"Snapshot=t32.inf",
"Mode=HTTP",
ITEMDATA,
"Name=__EVENTTARGET", "Value=", ENDITEM,
"Name=__EVENTARGUMENT", "Value=", ENDITEM,
"Name=__VIEWSTATE", "Value={Siebel_Analytic_ViewState3}", ENDITEM,
"Name=txtUserName", "Value={newparam}", ENDITEM,
"Name=txtPassWord", "Value=123321", ENDITEM,
"Name=txtCode", "Value=2669", ENDITEM,
"Name=ClientScreenWidth", "Value=1104", ENDITEM,
"Name=ImgbtnLogin.x", "Value=49", ENDITEM,
"Name=ImgbtnLogin.y", "Value=15", ENDITEM,
LAST);
将txtUserName进行了参数化,点击个人的工作室,下面的"URL=http://fxldxm.2011.teacher.com.cn:8080/IndexPage/StudentIndex.aspx?UserID=17729"中的userid怎么给动态取值呢????请各位帮忙
web_url("个人研修工作室",
"URL=http://fxldxm.2011.teacher.com.cn:8080/IndexPage/StudentIndex.aspx?UserID=17729",
"Resource=0",
"RecContentType=text/html",
"Referer=http://fxldxm.2011.teacher.com.cn:8080/feixueli2011Admin/Main.aspx",
"Snapshot=t53.inf",
"Mode=HTTP",
LAST); |
|