The tiny VB.NET quiz – byref or what the…?

Alright, here is the next quiz. Imagine the following code: Module Module1    Dim intVal As Integer = 10    Dim dblVal As Double = 20    Sub Main()        ModifyValue(intVal)        ModifyValue(dblVal)        PrintValues()    End Sub    Private Sub PrintValues()        Console.WriteLine(“{0} – {1}”, intVal, dblVal)    End Sub    Private Sub ModifyValue(ByRef Value As Integer)        Value = 30        PrintValues()    End SubEnd Module This…

2

Do you know your language? This time it’s the tiny VB quiz ;-)

Dim x = -2147483648Dim y = Integer.MinValue Well, the question is as easy as that – what Types are x and y and what’s the reason? Cheers    Daniel P.S. Needless to say that you shouldn’t use the VB.NET compiler but the one in your head 😉

4

ASP.NET Ajax TechTalk (Update)

Vorbei sind die Zeiten grauer, langweiliger Webanwendungen die hauptsĂ€chlich aus einer Ansammlung von Texten und Links bestanden. Der aktuelle Trend geht zu interaktiven, reichhaltigen Anwendungen welche die Features und FunktionalitĂ€ten traditioneller Desktopanwendungen in einer Webanwendung im Browser zur VerfĂŒgung stellen. Ermöglicht wurde dieser Trend u.a. durch ein Programmiermodell welches heute unter dem Namen Ajax (Asynchronous…

8

Daily .Net Feeds – ASP.Net 2.0 – Advanced – Day 15

Hi Everyone, Welcome back!!! As mentioned yesterday, today we will be wrapping up with the discussion about the ASP.Net 2.0 compilation machinery with the discussion about virtual path providers. Virtual Path Providers: Before the advent of ASP.NET 2.0, a source ASP.NET page could be only an .aspx file deployed on the server and located in…

4

Daily .Net Feeds – ASP.Net 2.0 – Advanced – Day 14

Hi Everyone, Welcome back!!! Yeah, we skipped a few days again, just got a bit busy with my cases. As mentioned earlier, today we will be taking up the discussion about ASP.Net 2.0 Build Providers. Build Providers: In ASP.NET 1.x, only a few file types are dynamically compiled into assemblies—ASP.NET pages, user controls, ASP.NET Web…

1

Daily .Net Feeds – ASP.Net 2.0 – Advanced – Day 11

Hi Everyone, Welcome back!!! Let’s continue the discussions around the ASP.Net compilation mechanisms. We discussed the overall dynamic compilation concepts (what happens when resources get updated) and pre-compilation (techniques to avoid first hit delay and preserving intellectual property by hiding source code), however whenever any kind of compilation happens for any resource of an ASP.Net…

1

Daily .Net Feeds – ASP.Net 2.0 – Advanced – Day 10

Hi Everyone, Welcome back!!! Let’s continue the discussion about ASP.Net site pre-compilation. We talked about in-place pre-compilation yesterday; another flavor of pre-compilation is deployment pre-compilation. Pre-compilation for deployment: Pre-compilation for deployment pursues different goals than in-place pre-compilation. Conceptually, it tends to transform the ASP.NET application into a closed executable that preserves intellectual property by hiding…

0

Daily .Net Feeds – ASP.Net 2.0 – Advanced – Day 7

Hi Everyone, Welcome back!!! Again, continuing to discuss the automatic dynamic page compilation further. Now we have been saying all the while that ASP.Net will detect automatically at runtime when ASP.Net resources change and will dynamically create new assemblies. Let’s see how this replacement of assemblies happens. How ASP.NET Replaces Page Assemblies: We already mentioned…

1

Daily .Net Feeds – ASP.Net 2.0 – Advanced – Day 6

Hi Everyone, Welcome back!!! Again, continuing to discuss the automatic dynamic page compilation further. Let’s understand how is the page assembly generated with respect to what files are involved. Generating an assembly for a particular .aspx resource is a 2 step process. First, a class file is created that fully represents the markup of the…

2

Daily .Net Feeds – ASP.Net 2.0 – Advanced – Day 5

Hi Everyone, Welcome back!!! As mentioned, we are continuing to discuss the automatic dynamic page compilation further. Now, if you notice the way the final page class gets prepared is a bit different in ASP.Net 2.0 compared to how it happened in ASP.Net 1.x, this is typically because of the introduction of partial classes. Partial…

3