Your First ASP_Net Project Part - 2

100 %
0 %
Information about Your First ASP_Net Project Part - 2
Education

Published on January 4, 2009

Author: biswadip

Source: slideshare.net

Description

Know how to develop a database bound website and use xml for your website .

Your First ASP. Net Project – Part 2 By: Biswadip Goswami (c) Biswadip Goswami, [email_address]

A configuration file, whether it is a machine.config, web.config, or an application configuration file, needs to adhere to the configuration schema that determines which elements should be included. The schema can be found at C:Program FilesMicrosoft Visual Studio 8XmlSchemasDotNetConfig.xsd and is broken down into a number of sections. Web applications are configured via the web.config file. This file can be located in a number of locations depending on the scope to which the settings need to be applied. (c) Biswadip Goswami, [email_address]

A configuration file, whether it is a machine.config, web.config, or an application configuration file, needs to adhere to the configuration schema that determines which elements should be included.

The schema can be found at C:Program FilesMicrosoft Visual Studio 8XmlSchemasDotNetConfig.xsd and is broken down into a number of sections.

Web applications are configured via the web.config file. This file can be located in a number of locations depending on the scope to which the settings need to be applied.

(c) Biswadip Goswami, [email_address]

(c) Biswadip Goswami, [email_address]

(c) Biswadip Goswami, [email_address]

(c) Biswadip Goswami, [email_address]

Several features within Visual Studio 2005 could be loosely classified as code-generation techniques, as they significantly reduce the code that you have to write. Snippets A large proportion of the code that developers have to write is mundane, such as writing property accessors for private member fields. You can often identify code blocks that you find yourself writing repeatedly. (c) Biswadip Goswami, [email_address]

Several features within Visual Studio 2005 could be loosely classified as code-generation techniques, as they significantly reduce the code that you have to write.

Snippets

A large proportion of the code that developers have to write is mundane, such as writing property accessors for private member fields. You can often identify code blocks that you find yourself writing repeatedly.

(c) Biswadip Goswami, [email_address]

(c) Biswadip Goswami, [email_address]

Refactoring With a lot of emphasis being placed on agile development methodologies, refactoring is an important technique for reviewing and simplifying code. The premise is that the simpler the code, the easier it is to test and the less likely it is to contain bugs. An example of the refactoring support provided in C# is the Preview Changes dialog (c) Biswadip Goswami, [email_address]

Refactoring

With a lot of emphasis being placed on agile development methodologies, refactoring is an important technique for reviewing and simplifying code. The premise is that the simpler the code, the easier it is to test and the less likely it is to contain bugs.

An example of the refactoring support provided in C# is the Preview Changes dialog

(c) Biswadip Goswami, [email_address]

(c) Biswadip Goswami, [email_address]

(c) Biswadip Goswami, [email_address]

Database The .NET Framework provides support for working with SQL Server, Oracle, ODBC, and OLE DB databases. To connect to any of these databases you need to specify a connection string that determines the location, the database, authentication information, and other connection parameters. From the Data menu within Visual Studio 2005, select Add New Data Source, which opens the Data Source Configuration Wizard. (c) Biswadip Goswami, [email_address]

The .NET Framework provides support for working with SQL Server, Oracle, ODBC, and OLE DB databases. To connect to any of these databases you need to specify a connection string that determines the location, the database, authentication information, and other connection parameters.

From the Data menu within Visual Studio 2005, select Add New Data Source, which opens the Data Source Configuration Wizard.

(c) Biswadip Goswami, [email_address]

(c) Biswadip Goswami, [email_address]

(c) Biswadip Goswami, [email_address]

(c) Biswadip Goswami, [email_address]

(c) Biswadip Goswami, [email_address]

(c) Biswadip Goswami, [email_address]

(c) Biswadip Goswami, [email_address]

(c) Biswadip Goswami, [email_address]

(c) Biswadip Goswami, [email_address]

XML is a cross-platform, hardware and software independent, text based markup language, which enables you to store data in a structured format by using meaningful tags. XML stores structured data in XML documents that are similar to databases. The .NET Framework has extensive support for working with XML documents. In the .NET framework, the support for XML documents includes: XML namespace XML designer XML Web Server control XML DOM support (c) Biswadip Goswami, [email_address]

XML is a cross-platform, hardware and software independent, text based markup language, which enables you to store data in a structured format by using meaningful tags. XML stores structured data in XML documents that are similar to databases.

The .NET Framework has extensive support for working with XML documents. In the .NET framework, the support for XML documents includes:

XML namespace

XML designer

XML Web Server control

XML DOM support

The System.Xml namespace provides a rich set of classes for processing XML data. The commonly used classes for working with XML data are: XmlTextReader : XmlTextReader reader = new XmlTextReader("XML1.xml"); XmlTextWriter: XmlTextWriter writer = new XmlTextWriter(Response.Output); XmlDocument: XmlDocument doc = new XmlDocument(); XmlDataDocument: DataSet ds=new DataSet(); XmlDataDocument doc=new XmlDocument(ds); (c) Biswadip Goswami, [email_address]

The System.Xml namespace provides a rich set of classes for processing XML data. The commonly used classes for working with XML data are:

XmlTextReader :

XmlTextReader reader = new XmlTextReader("XML1.xml");

XmlTextWriter:

XmlTextWriter writer = new XmlTextWriter(Response.Output);

XmlDocument:

XmlDocument doc = new XmlDocument();

XmlDataDocument:

DataSet ds=new DataSet(); XmlDataDocument doc=new XmlDocument(ds);

XmlPathDocument: XmlPathDocument doc=new XmlPathDocument("XML1.xml"); XmlNodeReader: XmlDocument doc=new XmlPathDocument(); XmlNodeReader reader=new XmlNodeReader(doc); XslTransform: Xsltransform xslt = new XslTransform (); (c) Biswadip Goswami, [email_address]

XmlPathDocument:

XmlPathDocument doc=new XmlPathDocument("XML1.xml");

XmlNodeReader:

XmlDocument doc=new XmlPathDocument(); XmlNodeReader reader=new XmlNodeReader(doc);

XslTransform:

Xsltransform xslt = new XslTransform ();

An XML Web Server control is used to display the contents of an XML document without formatting or using XSL Transformations. You can optionally specify a XSLT style sheet that formats the XML document before it is displayed in an XML server control. DocumentSource : Allows you to specify the URL or the path of the XML document to be displayed in the Web form. TransformSource: Allows you to specify the URL of the XSLT file, which transforms the XML document into the required format before it is displayed in the Web form. Document: Allows you to specify a reference to an object of the XMLDocument class. This property is available only at runtime. Transform: Allows you to specify a reference to an object of the XMLTransform class. This property is available only at runtime. (c) Biswadip Goswami, [email_address]

An XML Web Server control is used to display the contents of an XML document without formatting or using XSL Transformations. You can optionally specify a XSLT style sheet that formats the XML document before it is displayed in an XML server control.

DocumentSource : Allows you to specify the URL or the path of the XML document to be displayed in the Web form.

TransformSource: Allows you to specify the URL of the XSLT file, which transforms the XML document into the required format before it is displayed in the Web form.

Document: Allows you to specify a reference to an object of the XMLDocument class. This property is available only at runtime.

Transform: Allows you to specify a reference to an object of the XMLTransform class. This property is available only at runtime.

(c) Biswadip Goswami, [email_address]

(c) Biswadip Goswami, [email_address]

(c) Biswadip Goswami, [email_address]

(c) Biswadip Goswami, [email_address]

(c) Biswadip Goswami, [email_address]

(c) Biswadip Goswami, [email_address]

Thank You ! For assistance with your ASP.Net requirements contact: Biswadip Goswami Primary e-mail: [email_address] Alt e-mail: [email_address] Webpage: http://people.cognobytes.com/biswadip (c) Biswadip Goswami, [email_address]

For assistance with your ASP.Net requirements contact:

Biswadip Goswami

Primary e-mail: [email_address]

Alt e-mail: [email_address]

Webpage: http://people.cognobytes.com/biswadip

Add a comment

Related presentations

Related pages

Your First ASP.Net Project Part-2 ppt - Easy to Use ...

This tutorial helps you build an application using database ... Your First ASP.Net Project Part-2 ... Learn the First 25 Codes. Price: $15.
Read more

Database First Approach in MVC 5: Part 2 - C# Corner ...

This article shows development of an ASP.NET Web application in a MVC 5 project ... Database First Approach in MVC 5: Part 2. ... Creating Your First ASP ...
Read more

Creating your first aspnet mvc application - Part 3 - YouTube

... tutorials.blogspot.com/2013/04/creating-your-first-aspnet-mvc ... on the project and select "Properties" 2. ... ASP.NET Part 1 - Duration ...
Read more

Create the Project | The ASP.NET Site

2. Create the Project; ... Getting Started with Entity Framework 4.0 Database First - Part 8; ASP.NET 4 ... You're Viewing Create the Project
Read more

Building your first MVC application with Entity Framework ...

Part-2 in series to build your first application using ASP.NET MVC with ... Building your first MVC application with Entity Framework – Part 2. By ...
Read more

Create a website with ASP.Net - Part 1 - YouTube

Download this project: https://www.dropbox.com/s/c08osi44c6s... Starter pack: https://www.dropbox.com/s/xbw5re304x2... Discuss on the Forums ...
Read more

Introduction to ASP.NET 5 — ASP.NET documentation

The first preview release of ASP.NET 1.0 came out almost 15 years ago. ... with ASP.NET 5 you gain the following ... Every ASP.NET 5 project is a DNX ...
Read more

ASP.NET Web API, Part 1: Your First Web API | The ASP.NET Site

ASP.NET Web API, Part 1: Your First Web API; ASP.NET Web API, Part 2: Getting Data; ASP.NET Web API, ... regular contributor to several open source .NET ...
Read more

Tutorial 1: Building Your First Web Application Project

Building Your First Web Application Project; Understanding VS 2005 Code Behind Model; ... When you compile/build ASP.NET Web Application projects, ...
Read more