More Related Resource Links

ASP.NET provides a configuration system we can use to keep our applications flexible at runtime. In this article we will examine some tips and best practices for using the configuration system for the best results.

The element of a web.config file is a place to store connection strings, server names, file paths, and other miscellaneous settings needed by an application to perform work. The items inside appSettings are items that need to be configurable depending upon the environment, for instance, any database connection strings will change as you move your application from a testing and staging server into production.

EncapsulationLet's abstract away the source of the connection string using a class with a static property.

I'm
using EF3.5sp1 for a project, and I've been working around many of its
problems... as such, my entity partial classes have a lot of logic in
them for change-tracking and whatnot. Obviously, I'd like to factor
this logic out into a common base class,
but of course all my objects must derive from EntityObject. Is it
possible to tell them to derive from some class of my own invention
(which would actually likely derive from EntityObject themselves)?

I'd rather avoid editing the EDMX file unless the changes will be
safe on entity-model-update, since I'm still making changes to the
database schema in this early state of my project.

Thanks

Also, is there any good workaround for the fact that the change isn't tracked when you change EntityReference.EntityKey?

Just about everyone who uses Microsoft .NET uses the Base Class Libraries (BCL).When we make the BCL better, almost every managed developer benefits. This column will focus on the new additions to the BCL in .NET 4 beta 1.

Out-of-the-box, the only way of coding RS232 serial communications applications in the .NET environment is to import the outdated and somewhat limited MSComm ActiveX control. This article describes the development of a lean, multithreaded, and modern RS232 base class library in C# managed code. The library uses Platform Invocation Services to interact with the Win32 API directly. Application programmers can use the library from any .NET language through inheritance; the article explores examples written in C# and Visual Basic .NET.

I have several Web Services that I call using jQuery, they are all <WebMethod()> _ Public Function and return either a boolean or string, depending on the function.

I have some Web Service functions, where I would like to call sub routines I have in my base class, they are Public Sub's.

When I add a call of a sub routine in the Web Service function, I get a blue line that says 'Object reference not set to an instance of an object'. If I change the sub routine to Public Shared Sub, then the blue line and error go away, but I get other errors from the calls I was successfully making to the base class routines before.

Can you Serialize a Derived class, cast as it's base?
(Using the stock XmlSerializer.Serialize?)
(The overall goal I'm trying to achieve, is I have 1 object, and I need to serialize it in 2 different ways, 1 with full info, one with half info, and I *thought* a base class would be the way to do it)
e.g.
I have a base and derived class
[XmlRoot("MyBaseXml"
)]
public
class
MyBaseClass {
public
string
baseField = "base"
;
}
[XmlRoot("MyDerivedXml"
)]
public
class
MyDerviedClass : MyBaseClass {
public
string
derivedField = "derived"
;
}
I make a new instance of my derived class
MyDerviedClass obj = new
MyDerivedClass();
And then I have the following serialization method(s)
///
<summary>
///
Saves an object to a file
///
</summary>
///
<param name="obj">
Object to save</param>
///
<param name="fileName">
Path to output to</param>
public
void
Serialize(object
obj, string
fileName) {
Type type = obj.GetType();
XmlSerializer xmlSerializer = new
XmlSerializer(type);
Serialize(obj, fileName, type);
}
///
<summary>
///
Saves an object to a file casting it as a specific type
///
</summary>
///
<param name="obj">
Object to save</param>
///
<param name="fileName&quot

hi,i want to create multi language cms project,i don't like use resourse component visual studio.please help me to create class for resourcestring and use for lable and string value.and cms user can add new language by xml and webform anybody help to me

This kind of weird.
I am trying to host an object of a class X (a class library class). This is a SAO and I have set the WellKnownMode as Singleton in the server configuration.
<wellknown mode="Singleton"
When multiple clients fetch the instance of the class X they can share the static member variables. Any changes made to the static variables are visible to each other.
The problem is with the non-static member variables of the class. Each instance is having a local copy of the non-static variables. Why should that happen in case of a Singleton mode?
Am I missing something for which this is happening?
Any help will be appreciated.
A for apple, B for boy, C for c++

Hello,
I created proxy class using svcutil.exe and added it in App_Webreference folder.
I want to access objects and methods from this proxy. But I am unable to create instance of this proxy class.
In inellisence, it is not showing this proxy class.
What could be the problem ? I am using VS 2008 and Visual Basic.
Thanks in advance.
Amit Lohakare

Hi There - Help needed
In SSMS 2008 (not express) the Database Diagram cast the exeption "Invalid Class String" (MS Visual Database Tools).
Why is this happening. I have used the diagram designer before succesfully
My OS W7 - SqlServer 2008 - every thing updated - every service pack installed
I have tryed reinstall seceral times - not positiv
What is going on - It had been working (1 month ago)
Please help
Freddy