ASP.NET MVC中的网格视图的高级设置 [英] grid view's advanced setting in asp.net mvc

查看:71
本文介绍了ASP.NET MVC中的网格视图的高级设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

网格视图的高级设置,编辑删除在asp.net中起作用.
但不能在asp.net mvc .edit中工作,删除链接会出现,但选择后什么都没有发生.

解决方案

我的回复太晚了,但我认为它可以提供帮助. br/>
对于asp.net,对Gridview的编辑删除操作取决于视图状态,但是由于MVC不支持视图状态,因此这可能是单击这些链接时不进行任何操作的原因.


我'我不确定我是否完全理解您的问题...

如果您在MVC中单击某些东西时某些东西不起作用,通常我会看一下html并查看要尝试调用的控制器/动作,并在此处放置一个断点,以便可以看到正在发生的事情.


而且我也必须添加它...
如果您还没有真正看过的话,那么这是关于MVC4的非常不错的教程.

http://www. asp.net/mvc/tutorials/mvc-4/getting-started-with-aspnet-mvc4/intro-to-aspnet-mvc-4 [ 解决方案

I am replying too late but I think it can help.

Edit Delete operation on Gridview are depend upon viewstate in case of asp.net, but since MVC does not support viewstate so this can be the reason to happen nothing on clicking these links.


I''m not sure that I completely understand your question...

If some thing is not working when you click something in MVC I normally have a look at the html and see what controller/action you are trying to call and put a break point there so you can see what is happening.


And I have to add this too...
This is a really good tutorial on MVC4 if you have not seen this you really should.

http://www.asp.net/mvc/tutorials/mvc-4/getting-started-with-aspnet-mvc4/intro-to-aspnet-mvc-4[^]


thank u ..wat is the alternate option for it in mvc?


这篇关于ASP.NET MVC中的网格视图的高级设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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