使用带有Razor引擎的MVC 4.0单击按钮时,控制值将被清除。 [英] Control value is gets cleared while click on button using MVC 4.0 with Razor engine.

查看:60
本文介绍了使用带有Razor引擎的MVC 4.0单击按钮时,控制值将被清除。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用带有Razor引擎的MVC 4.0单击按钮时,控制值被清除。

让我解释一下这个场景,我想做什么。

1.我有一个页面名称是Customer_Sell。在这个,我有客户名称,移动没有文本框和webgrid之一用于添加多个产品。

2.当我填写客户名称,移动没有

3在此之后,我输入产品名称和价格,然后点击添加按钮将此项添加到webgrid

4.然后我的整个页面被清除。



请给我解决方案。

Control value is gets cleared while click on button using MVC 4.0 with Razor engine.
Let’s I explain the scenario , what am I trying to do.
1. I have one page name is "Customer_Sell". On this, I have customer name, mobile no textbox and one of webgrid for adding multiple product into this.
2. When i fill the customer name, mobile no
3. After this, I input product name and price and click into "Add" button for adding this item into webgrid
4. Then my whole page is gets cleared.

Kindly give me the solution for this.

推荐答案

嘿Chetan,



我的这篇文章可以解决你的问题:



http://www.c-sharpcorner.com/UploadFile/cd7c2e/implement-insert-update-and-delete-functionality/ [ ^ ]
Hey Chetan,

This Article of mine might solve your problem:

http://www.c-sharpcorner.com/UploadFile/cd7c2e/implement-insert-update-and-delete-functionality/[^]


这篇关于使用带有Razor引擎的MVC 4.0单击按钮时,控制值将被清除。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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