Posts

Showing posts from June, 2012
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...

ASP.NET Page Life Cycle

Image
ASP.NET Page Life Cycle Introduction —   When Clients request for an aspx page from browser and lot of stuffs happens in background to produce the output or sending response to client. This evolves ASP.NET Page Lifecycle. —   ASP.NET Page Life Cycle is very much important to know for each and every developer to developed an ASP.NET Web Application. —   All events, data processing, dynamic control creation, view state, postback, rendering etc. are depends with Page Life Cycle. Application Life Cycle Client Request For Information Request comes to Server Server Process the request Send the response back to Client Key Terms To Remember —   HTTP.SYS WAS Application Pool Worker Process Key Terms To Remember Http Module Http Handler  Http Pipeline ASP.NET Page Life Cycle Begins  Start —   Initialization —   Load —   Validation —   Events — ...
ASP.NET History ASP.NET  is a  Web application framework  developed and marketed by  Microsoft  to allow  programmers  to build dynamic  Web sites ,  Web applications  and  Web services . It was first released in January 2002 with version 1.0 of the  .NET Framework , .NET Framework 2.0 Released with Visual Studio 2005, Microsoft SQL Server 2005, and BizTalk 2006 and was published on 22 January 2006. .NET Framework 2.0 consists of four major new components: Generics Language support for generics built directly into the .NET CLR. Full 64-bit support for both the x64 and the IA-64 hardware platforms. Numerous API changes. SQL Server integration – .NET 2.0, VS 2005, and SQL Server 2005 are all tied together. This means that instead of using T-SQL, one can build stored procedures and triggers in any of the New data controls with declarative data binding. New personalization features for ASP.NET, such as s...