Infinities Loop
ASP.NET and .NET from a new perspective
-
Understanding what Page.RegisterRequiresPostBack does
I recently received a comment in my Truly Understanding ViewState article about the "ArrayList of controls in the control hierarchy that need to be explicitly invoked by the page class during the raise postback event stage of the life cycle." Such is the 3rd entry in the master Triplet that makes up ViewState as a whole.
-
Response.Redirect into a new window (with Extension Methods)
This question comes up from time to time, to time. If you understand how redirects work, then you also know it is "not possible" to redirect into a new window, because a redirect on the server causes a special HTTP response to be sent to the users browser, the client. The browsers native implementation interprets the special response code and sends the user off to the destination. There's no built-in mechanism or standard for specifying a new window.
-
Rendering ASP.NET Controls out of place
Two posts back I discussed a technique you can use to render controls in an order other than how they are physically arranged in the control tree.
-
Inline Script inside an ASP.NET AJAX UpdatePanel
When you wrap content with an UpdatePanel, it pretty much takes care of everything for you. But it can't do absolutely everything...
-
Rendering ASP.NET Controls out of order
I receive a lot of comments and emails stemming from my series of articles on understanding the nuances of dealing with dynamic controls. It's interesting that so many of these requests revolve around very similar problems.
-
TRULY Understanding Dynamic Controls (Part 4)
Part 1: Dynamic vs. Static
Part 2: Creating Dynamic Controls
Part 3: Adding Dynamic Controls to the Control Tree
Part 4: Because you don't know what to render at design time -
Hacking the Universe: Quantum Mechanics
"I am among those who think that science has great beauty. A scientist in his laboratory is not only a technician: he is also a child placed before natural phenomena which impress him like a fairy tale." - Marie CurieGoing a little off topic today. But with this audience, I bet you are more likely to be interested than if this were a blog about politics.
-
Beware of the greedy Script element
I've seen this problem a few times now, from a few different developers... including myself. I figure it must have plagued someone else out there too, so hopefully if you read this, if you ever encounter this problem, it wont cost you hours.
-
ScriptManager.LoadScriptsBeforeUI Explained
A typical ASP.NET AJAX page will contain a fair amount of script references. Sometimes more than you realize, because components you use, such as server controls from the ASP.NET AJAX Control Toolkit, automatically include library scripts that enable their client-side magic. Sometimes you include references explicitly through the ScriptManager's ScriptReferences collection.
-
Keyboard wish #47: Mouse keys
How many times do you copy something just because you want to paste it somewhere else, immediately? Only, you get yourself into quite a mess if there's something valuable already on the clipboard. Sure, there are tools out there that allow for multiple clipboard items. It's built right into Office and even Visual Studio. But who uses that feature really? They're... clunky. For me, I always end up running a quick Win+R+notepad+Ctrl-V. Ahh the endless uses of notepad... but anyway.... all this madness and all you want to do is get something from ------> here