Click here to Skip to main content
15,887,355 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have attached multiple file to upload.for each & every attachment i have remove button .when I click on remove button all attached files aregetting removed.
beacause of page refresh.

I want particular file to remove of each &every remove button click event. is there any other way...I need some Idea...
Posted
Comments
[no name] 22-Aug-12 5:42am    
nice question.... my 5

Add a HTML button and remove the selected document through java script
 
Share this answer
 
Comments
oliver grace 22-Aug-12 6:22am    
Thanks a lot genius........
Kuthuparakkal 22-Aug-12 23:37pm    
my 5+
Your delete button is doing a postback to the page and that is the reason, you lost the last page state.

One simple solution is to use view state to regain to the last state.
The best solution, I see is stop doing postback. Instead use ajax to cater this situation.

For more details of view state, check kb articles,
http://msdn.microsoft.com/en-us/library/ms972976.aspx[^]

Got me!
cheers
 
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