Click here to Skip to main content
15,923,164 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have written a update query on button click and trying to update address on the page while this i have seen that address is update in the database but it is not updated in my current page(aspx page) for that loging session but next time when i am loging addrss is update.Plz any one suggest my how do i update it in current session..
Posted
Updated 18-Jul-13 20:53pm
v3
Comments
Thanks7872 19-Jul-13 2:15am    
Dont write whole question as title,its TITLE,you have been given enough space for description.
Alok.singh1166 19-Jul-13 2:17am    
okay Can you give me any solution for this
Thanks7872 19-Jul-13 2:33am    
You have not updated your question yet,and its not clear at all where you want changes to be updated.use Improve question widget above to improve it.
Thanks7872 19-Jul-13 3:47am    
can you show the code how you doing this?
Alok.singh1166 19-Jul-13 7:59am    
see i have a button on the page and on button click i have to update the addres simply iam using the update query which has updated the data in database but same time means same login i want my address should update on the page also . on page it is showing the updated addres on next login please help

Try to call the page again. Write the code in the Update_Button_Click() event.It's the easiest way to clear your problem.
Check the Binding It may causes you error. Check the DataAdapter/ DataTable you are going to binding to the grid.
 
Share this answer
 
v3
Comments
Alok.singh1166 19-Jul-13 7:56am    
i used respons.redirect("mypage.aspx");
to recallthe page and even manually i refreshed the page but still its not coming
Ganesh Kumar Kaki 20-Jul-13 9:09am    
Hey if you thought there will be no problem in the code, Your browser may be causing broblem think so. Change the browser and run it again.
If it's not working try to paste your binding code here. I might help you in this.
I think you have to refresh you page after updated you data.
User this after completed you update query
Response.Redirect(Request.RawUrl);
 
Share this answer
 
Comments
Alok.singh1166 19-Jul-13 7:04am    
this is not working
jaideepsinh 19-Jul-13 7:08am    
try to redirect on same page Response.Redirect("page.aspx");
Alok.singh1166 19-Jul-13 7:26am    
that is also not working

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