Click here to Skip to main content
15,905,414 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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
Posted

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.
 
Share this answer
 
Can you provide the code that's having the trouble?

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

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900