I have created a libray class and created a cs file inside the class.
but why i can't import the namespace and get the class object from other cs?
it causes error msg on assembly referernce? how can i set ?
View Complete Post
I hope this is the right place to ask this question.
I'm trying to make a control class library. I want to have a GenericHandler as a WebResource so I could call it from the web project that will use that control.
I need this handler will get parameters from the query string and return JSON data acourding to what it get in the QS.
I know how to create JS and images WebResources, so I tried the same on a generic handler I added to the class library project but all it does is return the source of the handler file and not the result.
Is what I'm trying to do possible? If so, what should I do?
I have a class library called WEM.portal which used Resource files to localise text in my composite controls.
I store my resource files (eg MyResourceFile1.resx) in App_GlobalResources folder and then refer to them using
MyLabel1.text = My.Resources.MyResourceFile1.MyResourceKey1
This is all working ok until I create seperate files for each language such as MyResourceFile1.FR-fr.resx.
I have implemented this throughout my other web applications but the Class Library doesnt seem to want to work the same way
When I load the page it correctly showes the resourced keys which I have done through the web application BUT the resource keys in the composite controls does not seem to pick up the culture code.
Am I missing something stupid. Ive tried
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.
Justin Van Patten
MSDN Magazine September 2009
The common language runtime (CLR) sits at the very heart of managed code. Indeed, it is the heart of managed code, so to understand managed code you need to understand the CLR.
MSDN Magazine January 2006
Timers often play an important role in both client applications and server-based components (including Windows services). Writing effective timer-driven managed code requires a clear understanding of program flow and the subtleties of the .NET threading model. The .NET Framework Class Library provides three different timer classes: System.Windows.Forms.Timer, System.Timers.Timer, and System.Threading.Timer. Each of these classes has been designed and optimized for use in different situations. This article examines the three timer classes and helps you gain an understanding of how and when each class should be used.
MSDN Magazine February 2004
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.
MSDN Magazine October 2002
I am trying to build a custom webpart in VS 2008 for MOSS 2007. I am using only class library for that.
How to add web user control in class library and add div tags in class library using C#.net?
When I try to debug a class library I am getting an warning message "Unable to automatically step into the server. Connecting to the server machine 'xxxx.xxx' failed. The debugger cannot connect to the remote computer. This may be because the remote computer
does not exist or firewall may be preventing communication to the remote computer. Please see help for assistance."
After getting this message my application shows the result set from the web service. I am not trying to debug the web service application, but trying to debug my code which is in another project in the same solution. Also I have added the project reference
from my test application not the dll reference. I've checked the windows firewall and added exception for port 80 also.
Any help in this regard will be greatly appreciated.
i want to use session to store some information for a form(ascx and ascx.cs file)
im using asp.net, c#, and visual studio 2005 , i included "using System.Web.SessionState;" but session is not a key word in visual studio intellisense. and also, i researched a little and found that many people are using
"using System.Web.SessionState.HttpSessionState;" and the HttpSessionState is not in the intellisense as well...
so which other classes or libraries should i using in order to use session?
There's already a BCL FAQ on MSDN,
This document is a supplement to the FAQ.
1.ÃÂ ÃÂ ÃÂ ÃÂ How do I compare two DateTime objects?