页面无法识别更改的值.... [英] Page doesn't recognise changed value....

查看:110
本文介绍了页面无法识别更改的值....的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在准备一个在更新页面上遇到问题的项目.
不过,代码会根据需要在字段(文本框和下拉列表)中获取数据.但是当我更改任何值并更新它时;它不会显示任何错误,但会更新以前的值.例如:

当前数据-用户
更改的数据-User1

查询工作正常,但是代码继承了先前的值"User".

你能帮我回答一下吗?

问候,
Rajni Sharma

Hi,

I am preparing a project in which I encountered a problem on updating page.
Though, the code fetch data as required in the fields (text boxes and dropdown lists). But when I change any value and update it; it doesn''t show any errors but update the previous values. For Example:

Current Data - User
Changed Data - User1

Query works fine but the code inherits the previous value "User".

Can you please answer this for me.

Regards,
Rajni Sharma

推荐答案

听起来像您的Page_Load方法中的页面属性IsPostback 缺少.

以防万一,这无济于事,然后使用DEBUGGER来查看代码执行,并尝试查找确切地被覆盖的地方.
Sounds like you are missing IsPostback property of page in your Page_Load method.

In case, that doesn''t help then use DEBUGGER to see the code execution and try to find the place where exactly it gets overridden.


您能否提供具有麻烦?

您的描述有点模糊,尽管听起来像是一个数据绑定问题.
Can you provide the code that''s having the trouble?

You''re description is a bit vague, although it sounds like a databinding issue.


这篇关于页面无法识别更改的值....的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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