Refresh Controls to the root


/ Published in: C#
Save to your folder(s)



Copy this code and paste it in your HTML
  1. public static class ControlExt
  2. {
  3. public static void RefreshToRoot(this Control control)
  4. {
  5. if (null == control)
  6. return;
  7. control.Refresh();
  8. RefreshToRoot(control.Parent);
  9. }
  10. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.