C# and ASP
Suppose I want to display Address details in GridView but don't want to display AddressId then I will hide column that displays AddressId. GridView has CheckBox also to select Addresses. Now at runtime on click of button I want to get AddressId of all selected Addresses in that case if I use gvAddress.Rows[index].Cell to get AddressId it will return Nothing. The reason behind is, if Gridview has any BoundField column for which visible property is set to "false" then that columns is not rendered at runtime in GridView and data of hidden column won’t be available . How to get Hidden Column Value in GridView
Before you use an IoC tool, some concepts to know first | Jeremy D. Miller JEREMY’s NOTE: I’m trying to rewrite the StructureMap documentation today, and I’m going to blog most of it out here as I finish it until Brendan tells me to stop polluting the main feed. This article is intended to be an introduction to the concepts behind an IoC tool for folks with little or no previous exposure. Feedback will be very much appreciated. From my original release back in June 2004: StructureMap is a Inversion of Control (IoC) slash Dependency Injection framework that can be used to improve the architectural qualities of an object oriented system by reducing the mechanical costs of good design techniques.
WCF response with duplicated elements Hi Steven, Thanks for clarifying that. So what you are, in effect, saying is that it is not possible to directly generate the C# code that will return the expected SOAP data from the given XSD definitions and that whenever we are provided with updated XSDs we will have to manually modify the C# code emitted by svcutil (or create them manually)?
When I first heard about dependency injection, I thought, "Dependendiwhatsit?" and promptly forgot about it. When I finally took the time to figure out what people were talking about, I laughed. " That's all it is?" "Dependency Injection" is a 25-dollar term for a 5-cent concept. Dependency Injection Demystified
C# Coding Standards and Naming Conventions
Foreach Loop Examples Foreach is a loop construct. It does not use an integer index. Instead, it is used on a collection and returns each element in order. This is called enumeration. It eliminates errors caused by incorrect index handling. Example
It is very easy to store the connection string in a config file and there are several benefits in doing so. This article describes why and how to store the connection string in web.config. Introduction It is a good practice to store the connection string for your application in a config file rather than as a hard coded string in your code. Store connection string in web.config - ConnectionStrings.com