Click here to Skip to main content
15,894,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear All,
When I try to update a record with page that contain in a master page.
I can't get the correct update bec record store only blank.

Any idea please let me know.

Thanks in advanced
Posted
Comments
m@dhu 27-Sep-10 4:45am    
Can you update it without using Master Page? Update has nothing to do with master page check the query you are using to update.
Om Prakash Pant 27-Sep-10 5:10am    
Can you show us the code which is being used for updating the data?

1 solution

U may be binding you control out of

If(!Page.IsPostBack)
{
}

block. So, in result the control is getting blank first on postback and then the data is saved as blank to database. Put your binding code inside the above defined block in Page_load event. This will solve your problem.
 
Share this answer
 
v2

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