Archives
-
Remove View State from UpdatePanel Call
You may not be aware that view state (and control state) is included on each UpdatePanel call, even if the controls placed inside it have it disabled. As view state can get quite large, it may be useful to disable posting it during UpdatePanel calls, as long as you know what you are doing!
-
Twitter
Follow me at https://twitter.com/#!/RJPeres75
-
Detecting Authentication Expiration in ASP.NET
I recently had to solve a problem: when issuing an asynchronous call by using an UpdatePanel, if the user is no longer authenticated – due possibly to long inactivity – this situation is silently ignored. What happens is, when an unauthenticated user tries to access a protected resource, ASP.NET redirects the request to the login page, and still returns a 302 HTTP status code (Found).
-
Querying an Uninitialized Collection with NHibernate
I have talked before about the problem of accessing an uninitialized collection and presented a solution that allows us to see if the collection contains elements on the DB, and how many there are, without actually loading them. Now I have a general purpose solution for querying the collection on the DB.
-
NHibernate Pitfalls: SQL Queries and Parameter Prefix
This is part of a series of posts about NHibernate Pitfalls. See the entire collection here.