Archives for the 'Software engineering' Category
ASP.NET Page Life Cycle
This is a favourite interview question: “what are the sequence of events in the ASP.NET page life cycle?”
Short answer:
Init
Load
PreRender
Unload
Long answer:
PreInit
Init
InitComplete
PreLoad
Load
LoadComplete
PreRender
SaveStateComplete
Unload
Disposed
Short answer with explanation, i.e., what to do when:
Init – read or initialize control properties
Load – set properties in controls and establish database connections
PreRender – make final changes to the contents of the page or its […]
Java as Fast as C++?
Quoting Steve Yegge’s talk at Stanford on 7 May 2008:
[I]t’s interesting because C++ is obviously faster for, you know, the short-running [programs], but Java cheated very recently. With multicore [processors]! This is actually becoming a huge thorn in the side of all the C++ programmers, including my colleagues at Google, who’ve written vast amounts of […]
ASP.NET ViewState Misconception
A very common misconception amongst ASP.NET page developers is that ViewState must be enabled to persist values across postbacks.
This is not true. Try this: on an .aspx page, add a textbox and a button. Your code should be similar to the one as follows:
PLAIN TEXT
HTML:
<body>
<form id="form1" runat="server">
<div>
[...]
FAD
Here's an acronym that's music to a developer's ears: FAD (functioning as designed).
It usually arises due to something that QA thinks is a defect, but actually isn't. So if it's FAD then nothing is broken; nothing needs to be fixed.
Or, to put it another way: "it's not a bug, it's a feature!"
Converting ASP.NET Web Applications from .NET Framework 1.1 to 2.0 and Above
When converting an ASP.NET web application from version 1.1 of the Microsoft .NET Framework to version 2.0 and above, the Visual Studio Conversion Wizard will convert your web application into what is termed a Web Site. In Framework 2.0 and above, ASP.NET apps come in two flavours: Web Site and Web Application Project [1]. The [...]