在MVC4中刷新页面时禁用控件 [英] Disabling controls in refreshing the page in MVC4

查看:86
本文介绍了在MVC4中刷新页面时禁用控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在使用MVC4和JQuery。这里有一些选项可以使用单选按钮。当我选择其中一个单选按钮时,一些下拉式控制器应该被禁用。这是在javascript code.But当页面刷新发生时(有时很少)所有控件都启用然后被禁用。这不应该发生。



当选择特定的单选按钮(用于禁用控件)并单击搜索按钮,页面中的控件已启用,然后再次被禁用。



请告诉我如何克服这个问题?



我尝试了什么:



编写脚本是为了禁用使用JQuery下拉列表

Hi,
I am using MVC4 and JQuery.Here there are some options by using radio buttons.When I am selecting one of the radio button some dropdown conrols should be disabled.This is handled in javascript code.But when page refresh happens(some times very few) all the controls are enabled and then got diabled.This should not be happened.

When selection of particular radio button(for disabling controls) and clicking on search button the controls in the page are enabled and then again got disabled.

Please let me know how to overcome this?

What I have tried:

Script is written for disabling the dropdowns using JQuery

推荐答案

在加载事件中使用预加载器屏幕。并且还可以在单​​选按钮事件中使用它。
Use Preloader Screen on Load Event. And also use this on radio buttons` event.


这篇关于在MVC4中刷新页面时禁用控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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