Archives
-
Easy SQL “If Record Exists, Update It. If Not, Insert It.”
A very common scenario is the one where we want to update the information in a record if it already exists in the table, and if it doesn’t exist, we want to create a new record with the information.
-
View Source Trick for Pages with Partial Rendering
Many people when developing want to look at the browser’s View Source to make sure that things are being outputted correctly or to see where in the DOM certain things are showing up. However, if you are using the Ajax concept of partial rendering (usually via UpdatePanels), what you get is the initial state of the page when it was first loaded before any partial page updates, not the state of the page as it is currently.
-
Controlling the ASP.NET Timer Control with JavaScript
Have you ever wanted to control your <asp:Timer> control from client-side code?
-
A Client-side Ajax Login for ASP.NET
A question was posed on the ASP.NET forums recently asking how to have a login control that doesn’t refresh the page. The ideal solution would be to just drop an ASP.NET Login control inside an updatepanel. However, the Login control (along with PasswordRecovery, ChangePassword, and CreateUserWizard controls whose contents have not been converted to editable templates) is not supported inside an UpdatePanel. They are just not compatible with partial-page updates.