使用MVC for Search功能而无需刷新页面。 [英] Work with MVC for Search functionality without page refresh.

查看:99
本文介绍了使用MVC for Search功能而无需刷新页面。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是MVC3(C#)的新手,我们在页面刷新和结果显示方面遇到了问题。请在下面找到详细信息,

I am new to MVC3(C#), we are facing a problem in page refresh and result display. Please find the details below,

1:最初视图强烈绑定到实体,具体取决于搜索(文本框值)和排序(下拉值)参数需要过滤显示的列表没有
查看或页面刷新

1 : Initially the view is strongly bind to an entity, depending on the search(textbox value) and sort(dropdown value) parameters need to filter the list displayed without view or page refresh.

2:主要标准是,不应形成HTML结构在中间层中,只需要使用json将实体列表传递给java脚本。

2 : And main criteria is, there should be no HTML structure to be formed in the intermediate layers, only list of entities need to be passed to the java-script using json.

3:使用从控制器到Java脚本的json对象需要绑定网格结构没有在java脚本中形成HTML标记。 (我的想法是将结构与ViewBag之类的对象绑定以重新分配。由于ViewBag是服务器端控件,因此无法在java脚本中更改


3: Using the json object from controller to Java-script need to bind the grid structure without formation of HTML tags in java-script. (My idea is to bind the structure with object like ViewBag to be reassigned. As ViewBag is server side control, can't alter in the java-script)

请在此建议。

提前致谢。

Hanumanth Reddy Malapuram。

Hanumanth Reddy Malapuram.

推荐答案

我建议您在asp.net论坛上发布查询。

I would suggest you post the query on asp.net forums.

http://forums.asp.net/


这篇关于使用MVC for Search功能而无需刷新页面。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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