Attention: We are retiring the ASP.NET Community Blogs. Learn more >

Note to="self" message="read this"

Read this on Monday:

http://dotnetweblogs.com/RMcLaws/posts/3222.aspx

Sounds similar (although I haven't read it yet) to something I was thinking about during the week.  Basically one of my clients wanted a grid of entries with an edit button that takes the user to a pop-up to do the edit.  When the edit is done and saved, I was thinking about doing something like this (psuedo-code) to refresh the underlying grid:

opener.location.href = opener.location.href ;

self.close()

However I'm sure that throws up a myriad of issues to think about such as what would happen if the user was on page 7 of 7 which has a single record.  During the edit they delete the record, I'm sure that refreshing the grid page would throw an IndexOutOfBounds exception (or something).

 

No Comments