日期:2014-05-16  浏览次数:20776 次

简单问题请教,如何传递参数
本帖最后由 fangsky 于 2013-09-11 13:58:45 编辑

<div><input name="Userid" type="hidden" id="Userid" size="10"> 
<img src="../images/select.gif" alt="选择" title="选择"  onclick='return window.open("select_kehu.asp?action=Popup&form_submit=false","test");'>
</div>
<div>
<select name="Cid" id="Cid" style="width:120px;">
<option value="0" selected>请选择联系人</option>
<%GetlxrList Userid%>
</select>
</div>


根据onclick事件给文本框Userid赋值成功,如何把这个值参数给GetlxrList函数,谢谢!! 我要得到这个USERID对应的联系人列表

------解决方案--------------------
先用个隐藏域存起
------解决方案--------------------
GetlxrList应该是一个数据集吧  那你就可以循环ID相等你就选中

示例1:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>

<body>
<form name="Fname" method="get">
   <select name="Fselect">
          <option value="1" <% if request.querystring("Pvalue")=1 then %> selected <% end if %>>广东</option>
                  <option value="2" <% if request.querystring("Pvalue")=2 then %> selected <% end if %>>广西</option>
                  <option value="3" <% if request.querystring("Pvalue")=3 then %> selected <% end if %>>湖南</option>
                  <option value="4" <% if request.querystring("Pvalue")=4 then %> selected <% end if %>>湖北</option>
   </select>
   <input type="button" name="submit" value="submit" onclick="PP()">
</form>

<hr>




<form name="FFname" method="get">
   <select>
          <option <% if request.querystring("Pvalue")=1 then&n