Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET
i want to refresh the page when i add the record,update,delete the record..
Posted 4-Dec-12 22:29pm
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 6

after completing your add, update and delete functionality just call your function binding function.
 
or you can use redicturl of the same page.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Response.Redirect("SamePageURL");
  Permalink  
Comments
Surendra0x2 at 5-Dec-12 4:55am
   
Gr8 Answer Sir :)
Krunal Rohit at 5-Dec-12 4:58am
   
Thanks mate :) And don't call me 'Sir', I'm a student.. :)
Surendra0x2 at 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
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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[^]
  Permalink  
Comments
Surendra0x2 at 5-Dec-12 4:56am
   
Exactly Sir :)
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

hi dear,
 
when you execute Insert, Delete or Update process then Reload your Refresh function.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

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?
  Permalink  
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 5

call the pageload function as

Page_Load(this,e);
whenever u want....
  Permalink  

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

  Print Answers RSS
0 Maciej Los 589
1 OriginalGriff 379
2 CPallini 205
3 RyanDev 175
4 Sergey Alexandrovich Kryukov 170
0 OriginalGriff 5,649
1 Sergey Alexandrovich Kryukov 4,783
2 Peter Leow 2,954
3 Maciej Los 2,689
4 DamithSL 2,465


Advertise | Privacy | Mobile
Web03 | 2.8.140718.1 | Last Updated 5 Dec 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid