William Duffy

Glasgow Based C# ASP.NET Web Developer

Tag archive for ‘postback’

Repopulate Html.PasswordFor<> on validation errors

ASP.NET MVC’s HTML helpers are fast and efficient for rendering elements using your model. One of these is the HTML.PasswordFor<> method, which has a little gotcha that many people get caught out with. The HTML.PasswordFor<> method will render a password input to mask keystrokes on the browser but will not populate the value using the [...]

Retaining Anchor Position on ASP.NET Postback

I ran into a small problem the other day that although annoying, proved easy enough to fix. The problem arose because I was using JQuery UI tabs to allow multiple pageable gridviews to be managed on the one page. Whenever the gridview was paged a postback was initiated and the gridview paged as expected, however [...]