Archive for August, 2007

Little-known C# 2.0 operator – ??

Excerpt from the msdn:

The ?? operator returns the left-hand operand if it is not null, or else it returns the right operand.

Example:

string s = null; 
int? i = null; 
Console.WriteLine(s ?? "(null)"); 
Console.WriteLine(i ?? -1);

Will produce:

(null) 
-1
Advertisements

August 21, 2007 at 2:39 pm 2 comments

Links For Continuous Learners

Today I’ve spotted nice Steve Pietrek’s blog where he puts links to miscellaneous articles about .Net and related technologies

http://spietrek.blogspot.com/

August 20, 2007 at 9:44 am Leave a comment

ASP.NET Ajax, Update Panels and Response.Redirect

If your Response.Redirect doesn’t work under UpdatePanel’s callback, then you definitely missing ScriptModule in the web.config:

<httpModules>

  <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

</httpModules>

And now it works like a charm 🙂

August 17, 2007 at 1:33 pm 36 comments


Calendar

August 2007
M T W T F S S
    Sep »
 12345
6789101112
13141516171819
20212223242526
2728293031  

Posts by Month

Posts by Category