用于在url中查询字符串的Html.dropdownlist [英] Html.dropdownlist to query string in url

查看:82
本文介绍了用于在url中查询字符串的Html.dropdownlist的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Dear Gents,



我有一个下拉列表,它会将数据传递给查询字符串并且工作正常。我有另一个下拉列表,我想将值传递给url中的查询字符串以及上一个下拉列表,我如何在asp.net mvc中执行此操作



your非常感谢帮助并节省我的时间。



关心

Dear Gents,

I have a dropdownlist which will pass the data to the query string and its working fine. I have another dropdownlist that i want to pass the value to the query string in url along with the previous dropdown, how can i do that in asp.net mvc

your help is much appreciated and save my hours.

Regards

推荐答案

<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script>


function (){
var collectParams = function (){
var params = {OccupationId:
(function() { var collectParams = function(){ var params = { OccupationId:


#Occupation )。val(),EthnicId:
("#Occupation").val(), NationalityId:


这篇关于用于在url中查询字符串的Html.dropdownlist的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆