我有两个页面“first.aspx”和“second.aspx”。
在“first.aspx”中
<form name="frm" method="post" action="second.aspx">
<select name="ApiasDDL">
<option value="36">Option 1</option>
<option value="63">Option 2</option>
</select>
<input name="num" id="num_id" type="text" >
<input name="ResultBtn" type="submit" class="button"">
</form>
我正在POST
向“second.aspx”发出请求。我的代码是..
//my postvars
byte[] buffer = Encoding.ASCII.GetBytes("num=123"); //here i want to select
//dropdownlist value=36 also
HttpWebRequest WebReq =
(HttpWebRequest)WebRequest.Create("second.aspx");
WebReq.Method = "POST";
....
....
如何选择下拉value=36
列表my postvars
?