function show_sub(v) { //alert(v); var param = ""; param += "PId=" + $("#PId").val(); param += "&type=" + $("#HidType").val(); param += "&select=" + v; var url = "PackageAddWayBills.aspx?" + param; //wwwwalert(url); window.location.href = url; }
<asp:DropDownList ID="DDLCountry" CssClass="DDLCountry" runat="server" οnchange="show_sub(this.options[this.options.selectedIndex].value)">
<asp:ListItem Text="--请选择--" Value="0"></asp:ListItem>
</asp:DropDownList>