Posts

Did you know… You can go directly to the installed code samples from within Visual Studio?

Image
Did you know… You can go directly to the installed code samples from within Visual Studio?  This tip is specific for Visual Studio 2008. You can easily find the samples that have been installed for Visual Studio by going to   Help-Samples.  Then in the browser, click on the   local Samples folder   link. As the message box states, the samples are in a .zip file, so you’ll need to extract these files before you attempt to build. Otherwise, the build will fail, and you’ll wonder why the samples that came with the product don’t work.

Visual Studio 2008 Debugging Tips

Image
Visual Studio 2008 Debugging Tips Step Into, F11: "Step Into executes only the call itself, then halts at the first line of code inside the function." (MSDN) Use Step Into to go inside your method and stop immediately inside it. Step Over, F10: Moves to the next step in your code also, but doesn't break inside any methods. Step Out, SHIFT + F11: Ignores the rest of the current method and goes to the calling method. Window Description Immediate Displays variables and expressions. Autos Displays all variables in the current and previous statements. Locals Displays all variables in the current context. Watch Displays up to four different sets of variables. Call Stack Displays all methods in the call stack. Threads Displays and control threads. Immediate window  : to execute a method while your application is r...

Basic components of .NET platform

Image
What are the basic components of .NET platform? The basic components of .NET platform (framework) are: Common Language Runtime (CLR): The most important part of the .NET Framework is the .Net Common Language Runtime (CLR) also called .Net Runtime in short. It is a framework layer that resides above the Operating System and handles/manages the execution of the .NET applications. Our .Net programs don’t directly communicate with the Operating System but through CLR MSIL (Microsoft Intermediate Language) Code: When we compile our .Net Program using any .Net compliant language like (C#, VB.NET, C++.NET) it does not get converted into the executable binary code but to an intermediate code, called MSIL or IL in short, understandable by CLR. MSIL is an OS and H/w independent code. When the program needs to be executed, this MSIL or intermediate code is converted to binary executable code, called native code. The presence of IL makes it possible the Cross Language Rela...
Image
XML Example This is an example of an XML document that used an external DTD file and cascading style sheet (CSS) file. The XML File The following file is called "Computerparts.xml". <?xml version="1.0"?> <!DOCTYPE PARTS SYSTEM "Computerparts.dtd"> <?xml-stylesheet type="text/css" href="xmlComputerpartsstyle.css"?> <PARTS> <TITLE>Computer Parts</TITLE> <PART> <ITEM>Motherboard</ITEM> <MANUFACTURER>ASUS</MANUFACTURER> <MODEL>P3B-F</MODEL> <COST> 123.00</COST> </PART> <PART> <ITEM>Video Card</ITEM> <MANUFACTURER>ATI</MANUFACTURER> <MODEL>All-in-Wonder Pro</MODEL> <COST> 160.00</COST> </PART> <PART> <ITEM>Sound Card</ITEM> <MANUFACTURER>Creative Labs</MANUFACTURER...

XML overview quick reference

XML overview quick reference XML Extensible markup language It is Language which uses meaningful tags or user defined tags. It is cross platform, hardware & software independent language. Runs and Execute on any Operating system. Execute with minimum hardware or software. Viewed in MSDOS editor, Notepad, Word, Excel, XML Editor, Internet explorer. XML Used Data Storage Data transfer from one PC to another XML Declaration XML Starts always with <?xml version = "1.0" encoding = "UTF-8" ?> XML   document has exactly one single   root element Tags must occur in pairs Tags are case sensitive. Save as .XML Advantages Domain specific vocabulary Smart searches Granular updates User selected view of data   XML File <? xml version = " 1.0 " encoding = " utf-8 " ?> ---Declaration < AboutMe >         ...

Hello World -- Your First C# Program

Image
To create and run a console application Start Visual Studio. On the  File  menu, point to  New , and then click  Project . In the  Templates Categories  pane, expand  Visual C# , and then click  Windows . In the  Templates  pane, click  Console Application . Type a name for your project in the  Name  field. Click  OK . The new project appears in  Solution Explorer . If Program.cs is not open in the  Code Editor , right-click  Program.cs  in  Solution Explorer  and then click  View Code . Replace the contents of Program.cs with the following code. using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace HelloWorld {     class Program     { //The Main method is where you create objects and execute other methods.     ...

Difference between 'Web Site' and 'Project' in Visual Studio

Difference between 'Web Site' and 'Project' in Visual Studio  Project file structure      Web application projects:A Visual Studio project file (.csproj or .vbproj) stores information about the project, such as the list of files that are included in the project, and any project-to-project references.      Web site projects:There is no project file (.csproj or .vbproj). All the files in a folder structure are automatically included in the site. Compilation     Web application projects:You explicitly compile the source code on the computer that is used for development or source control.By default, compilation of code files (excluding .aspx and .ascx files) produces a single assembly.   Web site projects:The source code is typically compiled dynamically (automatically) by ASP.NET on the server the first time a request is received after the site has been installed or updated.You can precompile the site (compile in advan...