如何从MVC控制器提交搜索参数到查看页面 [英] How to submit search parameter from MVC controller to view page
问题描述
我有一个mvc3控制器类,其中包含我正在搜索的字段的搜索参数。我点击搜索按钮后,我想在搜索表单上保留这些值。我丢失这些值,我看到的值是页面首次加载
时的默认值。会不会感激任何提示。我正在使用模型数据绑定来发布值
I have a mvc3 controller class with search parameters for the fields I am searching on. I will like to maintain these values on the search form after I click on the seach button. I am losing these values and the values i am seeing are default values when the page first loads. Would appreciate any hint. I am using Model databinding to post the values
akoranteng
akoranteng
推荐答案
您好Akoranteng,
Hi Akoranteng,
欢迎来到MSDN论坛。
Welcome to the MSDN Forum.
根据您的描述,它似乎与asp.net更相关,所以请试试吧这个论坛: http://forums.asp.net/
Based on your description, it seems it more related to asp.net, so please try it on this forum: http://forums.asp.net/
谢谢您的理解和支持。
致以最诚挚的问候,
这篇关于如何从MVC控制器提交搜索参数到查看页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!