提交botton在mvc中加载图像 [英] Submit botton Loading image in mvc

查看:100
本文介绍了提交botton在mvc中加载图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个称为Registration的视图,其中包含[文本框,下拉列表,复选框]
.
我需要在提交"按钮和客户端验证中加载图片

通过模型处理

请建议我摆脱这个问题

在此先感谢

in MVC3 i have a view called Registration that is containing [text box,dropdownlist,check box also]
.
i need loading image in submit button and client side validation also

handling through Model

plz suggest me to get rid of this problem

Thanks in advance

推荐答案



您只能使用javascript来做到这一点
1)添加带有加载图像的div标签并将其显示属性设置为none
2)在JS onSubmit或Submit按钮的单击事件中调用JS函数
3)将加载div标签的显示属性设置为block
4)验证您的控件,然后再次将loading div的显示设置为none


You can do this with javascript only
1)add a div tag with loading image set it display property to none
2)in JS onSubmit or submit button''s click event call JS function
3)set the display property of loading div tag to block
4)and validate your controls and again set display of loading div to none


这篇关于提交botton在mvc中加载图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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