Click here to Skip to main content
15,883,737 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i want to refresh the page when i add the record,update,delete the record..
Posted

after insertion/deletion/update


just call the binding method which is you used for biding first time, that will work



refer this example

http://www.codedigest.com/Articles/ASPNET/281_Edit_Update_Delete_and_Insert_data_with_DataList_control_using_LINQ.aspx[^]
 
Share this answer
 
Comments
Surendra0x2 5-Dec-12 4:56am    
Exactly Sir :)
hi dear,

when you execute Insert, Delete or Update process then Reload your Refresh function.
 
Share this answer
 
By default in asp.net click on every button post back the page.
By doing Response.redirect("tosomepage.aspx") you will loose view state if any important data. how you are doing insert/update/delete?
 
Share this answer
 
v2
call the pageload function as

Page_Load(this,e);
whenever u want....
 
Share this answer
 
after completing your add, update and delete functionality just call your function binding function.

or you can use redicturl of the same page.
 
Share this answer
 
C#
Response.Redirect("SamePageURL");
 
Share this answer
 
Comments
Surendra0x2 5-Dec-12 4:55am    
Gr8 Answer Sir :)
[no name] 5-Dec-12 4:58am    
Thanks mate :) And don't call me 'Sir', I'm a student.. :)
Surendra0x2 5-Dec-12 5:05am    
oops Buddy I'm facing one problem can u help me out
http://www.codeproject.com/Questions/503826/LabelplusTextplusNotplusshowingplusafterplusUpdati

check this n help dude if u can

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