I went with Guru's approach, because works great with ASP.NET and it needs to be at the top at the function anyway. And the lambda function also seems nice. Thank you.