Click here to Skip to main content
15,890,512 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Sir,



i am working on asp.net,

my problems are reload page at added any items. i am not use ajax control
update panel. so plz reply


thanks
Posted

I guess you are inserting/adding new item to database? If yes, after you add the item, get the new records from the database and re-bind it.

If not, please elaborate.
 
Share this answer
 
yes sir i am fetch data again and again in database
 
Share this answer
 
vikas shukla wrote:
yes sir i am fetch data again and again in database



So what's the problem. After you make changes to the database (adding new item in your case), get the new data and re-bind it.

Tip: Write a function which gets the data to be displayed from database and bind the grid. So whenever you make changes to the database call this function which will update your grid.
 
Share this answer
 
I am not sure about your problem, please elaborate it more.

What seems by the question is that you might have written the code for adding data into DB in your pageload event. So, each time it get fired and add a data into the DB.

If that is the case then please migrate your code to button click event or redirect the user to another page as soon as data is added to the DB.
 
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