Skip to main content

Posts

Interview Question on .Net

View QUESTION View QUESTION 2 View You work as the application developer at Certkille... View What's New in ASP.NET View ASP.NET Overview View What's New in Visual Studio 2008 View Improve Application Life-Cycle Management (ALM) View Better Developer Experience View Enable New Web Experiences View Handle Data More Productively View Build Windows Vista Applications View Create Microsoft Office Applications View Develop Smart Client Applications View Overview of Microsoft Visual Studio 2008

ASP.Net Interview Question and Answer

View Professional ASP .Net page 3 Professional ASP .Net View Professional ASP .Net page 2 Professional ASP .Net View Professional ASP .Net Professional ASP .Net View SQL Server 2000 FAQs View .Net Interview Prepration FAQs View Inside C# FAQs View Dot Net Framework Essentials FAQs View Developing Web Application With VB .Net And C# .Ne... FAQs View Interview Work Exam For .Net Programmer Interview Work Exam For .Net Programmer View Interview Questions On .Net Interview Questions On .Net View Interview Questions .Net Interview Questions .Net View Interview Questions For .Net ...

c# , Windows SharePoint Services 3.0, HR Interview Question

View What's New in ASP.NET and Web Development asp.NET 3.5 View Preprocess Win32 Messages through Windows Forms c# Interview Question View Is it possible to output the command-line used to ... c# Interview Question View How do I get and set Environment variables? c# Interview Question View How do I create a constant that is an array? c# Interview Question View What is the difference between const and static re... c# Interview Question View How can I easily log a message to a file for debug... c# Interview Question View How do I play default Windows sounds? View How do I calculate a MD5 hash from a string? c# Interview Question View How do I send out simple debug messages to help wi... c# Interview Question View What's the...

What's New in ASP.NET and Web Development

The .NET Framework version 3.5 includes enhancements for ASP.NET in targeted areas. Visual Studio 2008 and Microsoft Visual Web Developer Express Edition also include enhancements and new features for improved Web development. The most significant advances are improved support for developing AJAX-enabled Web sites and support for Language-Integrated Query (LINQ). The advances include new server controls and types, a new object-oriented client type library, and full IntelliSense support in Visual Studio 2008 and Microsoft Visual Web Developer Express Edition for working with ECMAScript (JavaScript or JScript). The following sections of this topic describe the changes in ASP.NET and Visual Web Developer. ASP.NET Enhancements Visual Web Developer Enhancements ASP.NET Enhancements The .NET Framework version 3.5 includes enhancements for ASP.NET in the following areas: New server controls, types, and a client-script library that work together to enable you to ...

Preprocess Win32 Messages through Windows Forms

In the unmanaged world, it was quite common to intercept Win32 messages as they were plucked off the message queue. In that rare case in which you wish to do so from a managed Windows Forms application, your first step is to build a helper class which implements the IMessageFilter interface. The sole method, PreFilterMessage(), allows you to get at the underlying message ID, as well as the raw WPARAM and LPARAM data. By way of a simple example: public class MyMessageFilter : IMessageFilter { public bool PreFilterMessage(ref Message m) { // Intercept the left mouse button down message. if (m.Msg == 513) { MessageBox.Show("WM_LBUTTONDOWN is: " + m.Msg); return true; } return false; } } At this point you must register your helper class with the Application type: public class mainForm : System.Windows.Forms.Form { private MyMessageFilter msgFliter = new MyMessageFilter(); public mainForm() { // Register message filter. Applicati...

Is it possible to output the command-line used to build a project in Visual Studio?

Now that Whidbey has been out in Beta for more than a few months, it seems worth revisiting some frequently asked questions which have different (better?) answers now. In Everett (v7.1) the answer used to be No. However, in Whidbey (v8.0), the answer is Yes (and No). For the yes part of the answer, after building, go to the Output Window, select "Show Output from: Build", and about half way down you will see a section like this: Target "Compile" in project "ConsoleApplication1.csproj" Task "Csc" Csc.exe /noconfig /warn:4 /define:DEBUG;TRACE /debug+ /optimize- /out:obj\Debug\ConsoleApplication1.exe /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.31125\System.Data.dll, C:\WINDOWS.0\Microsoft.NET\Framework\v2.0.31125\System.XML.dll, C:\WINDOWS\Microsoft.NET\Framework\v2.0.31125\System.dll /target:exe /win32icon:App.ico AssemblyInfo.cs Class1.cs The task is invoking the IDE's in-process compiler to perform the equivalent of the above command-l...

How do I get and set Environment variables?

Use the System.Environment class.Specifically the GetEnvironmentVariable and SetEnvironmentVariable methods. Admitedly, this is not a question specific to C#, but it is one I have seen enough C# programmers ask, and the ability to set environment variables is new to the Whidbey release, as is the EnvironmentVariableTarget enumeration which lets you separately specify process, machine, and user.