创建高级搜索 [英] Create an advanced search

查看:61
本文介绍了创建高级搜索的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,
我正在开发我的第一个应用程序ASP.net MVC :).
我有两种搜索类型,简单搜索和高级模式.
简单的搜索包含一个允许进入高级模式的按钮,该按钮如何操作,因为在MVC中,Onclick动作不起作用:(.

Hello,
I''m working on my first application ASP.net MVC :).
I had two Type of search,simple search and advanced mode.
the simple search include a button that allow to go to advanced mode so how to do it, because in MVC Onclick action dont work :(.

推荐答案

您需要渲染单击简单搜索或高级搜索html按钮时,控制器中按钮特定操作中的简单搜索视图或高级搜索视图.
You need to render the simple search view or advanced search view in the button specific actions in the controller when the Simple search or advanced search html buttons are clicked.


我创建了两个搜索表单,但我不知道如何第一次使用ASP.net MVC时,使用特定操作来校准控制器中的搜索类型
I created two search form but i dont know how to use specific action to cal type of search in controler this the first time i use ASP.net MVC


这篇关于创建高级搜索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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