Reset changepassword control in ASP.Net under medium trust

The ChangePassword control prevents us from changing the password multiple times in a row.

The control never shows its text boxes after the first time. I found a fix here ( http://msmvps.com/blogs/egoldin/archive/2007/10/30/reseting-changepassword-control.aspx ) but it won't work under medium trust.

Any ideas how I reset my ChangePassword control in the trust tool

+1


a source to share


1 answer


Using a reflector is often better than reflecting;)



IControlDesignerAccessor control = (IControlDesignerAccessor) ChangePassword; Hashtable table = new Hashtable (1); table ["CurrentView"] = 0; control.SetDesignModeState (table);

+1


a source







All Articles