Add a custom section to web.config

0
If you have created a custom section like this, and if you want to add it programmatically to web.config then you have to: Use the WebConfigurationManager class and open the...

Integration Tests in .NET WebApi

0
In software development, testing is an essential aspect that ensures the stability and reliability of applications. Three primary types of tests are commonly used: unit tests, integration tests, and end-to-end tests. In this blog post, we will discuss these testing types in the context of a .NET WebAPI project and provide an example implementation of integration testing using an in-memory database.

nettiers – GetBy Index problem with StoredProcedure long name

0
Today I've discovered a problem with CodeSmith nettiers templates because it was possible to generate two SPs with the same name, for different entities. This happens when there are two indexes for...

DevDays 2009

0
Realizou-se a semana passada o DevDays 2009, o evento anual da Microsoft Portugal destinado a juntar profissionais e curiosos em torno das tecnologias da casa, que este ano foi...

Page.EnableEventValidation and “Invalid postback or callback argument” error

0
I developed a custom web part that basically renders a form and submits the entered data into a SharePoint list. The problem I was having is that when the...

LINQ to XML: How to use it?

0
Frequently, the most of people use XPATH to do xml manipulation. But if you want another way to manipulate XML, you can use LINQ to XML.Supposing that we have...

Posting back in a modal popup

0
If you have a server-side form that needs to post back to itself, and that form is in a window made available through window.showModalDialog call, the postback will cause...

Using Deployment setting on Production Environment

0
When i studied for the Microsoft exam (70-562, Microsoft .NET Framework 3.5, ASP.NET Application Development) i found an interesting setting that i didn’t known, the Deployment.This configuration setting ensures...

How to serialize an array or a list?

0
I needed to serialize an array few weeks ago and i found one way to perform this serialization.I performed the serialization for the following objects:_persons.Add(new Employee { FirstName =...

Add WCF Message Id in every log4net message

0
I needed to have the WCF message identifier in every log message because I needed to correlate the log messages from a particular WCF call. The best way to achieve...