后台获取前台runat=server的select的值
生活随笔
收集整理的這篇文章主要介紹了
后台获取前台runat=server的select的值
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
<li><asp:Label ID="Lpro" runat="server" Text="省份:" CssClass="fixWidth"></asp:Label><select id="Select1" name="Select1" runat="server" onchange="selectCity();" ><option selected="selected">省/直轄市</option></select><select id="Select2" name="Select2" runat="server" onchange="selectCountry()"><option selected="selected">請選擇</option></select><select id="Select3" name="Select3" runat="server" ><option selected="selected">請選擇</option></select></li> string[] proSub = Request.Form.GetValues("Select1");string pro1 = proSub[Select1.SelectedIndex];string[] proSub2 = Request.Form.GetValues("Select2");string pro2 = proSub2[Select2.SelectedIndex];string[] proSub3 = Request.Form.GetValues("Select3");string pro3 = proSub3[Select3.SelectedIndex];string pro = Server.HtmlEncode(pro1 + "-" + pro2 + "-" + pro3);
?
轉載于:https://www.cnblogs.com/fumj/p/3242773.html
總結
以上是生活随笔為你收集整理的后台获取前台runat=server的select的值的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: struts2配置文件中action的n
- 下一篇: N!-201308071627.txt