Your First ASP.Net Project Part-2


Published on

This tutorial helps you build an application using database(Access) and xml.

Published in: Education, Technology
  • Be the first to comment

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Your First ASP.Net Project Part-2

  1. 1. Your First ASP. Net Project – Part 2 By: Biswadip Goswami (c) Biswadip Goswami, [email_address]
  2. 2. <ul><li>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. </li></ul><ul><li>The schema can be found at C:Program FilesMicrosoft Visual Studio 8XmlSchemasDotNetConfig.xsd and is broken down into a number of sections. </li></ul><ul><li>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. </li></ul>(c) Biswadip Goswami, [email_address]
  3. 3. (c) Biswadip Goswami, [email_address]
  4. 4. (c) Biswadip Goswami, [email_address]
  5. 5. (c) Biswadip Goswami, [email_address]
  6. 6. (c) Biswadip Goswami, [email_address]
  7. 7. <ul><li>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. </li></ul><ul><li>Snippets </li></ul><ul><li>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. </li></ul>(c) Biswadip Goswami, [email_address]
  8. 8. (c) Biswadip Goswami, [email_address]
  9. 9. (c) Biswadip Goswami, [email_address]
  10. 10. <ul><li>Refactoring </li></ul><ul><li>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. </li></ul><ul><li>An example of the refactoring support provided in C# is the Preview Changes dialog </li></ul>(c) Biswadip Goswami, [email_address]
  11. 11. (c) Biswadip Goswami, [email_address]
  12. 12. (c) Biswadip Goswami, [email_address]
  13. 13. (c) Biswadip Goswami, [email_address]
  14. 14. Database <ul><li>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. </li></ul><ul><li>From the Data menu within Visual Studio 2005, select Add New Data Source, which opens the Data Source Configuration Wizard. </li></ul>(c) Biswadip Goswami, [email_address]
  15. 15. (c) Biswadip Goswami, [email_address]
  16. 16. (c) Biswadip Goswami, [email_address]
  17. 17. (c) Biswadip Goswami, [email_address]
  18. 18. (c) Biswadip Goswami, [email_address]
  19. 19. (c) Biswadip Goswami, [email_address]
  20. 20. (c) Biswadip Goswami, [email_address]
  21. 21. (c) Biswadip Goswami, [email_address]
  22. 22. (c) Biswadip Goswami, [email_address]
  23. 23. (c) Biswadip Goswami, [email_address]
  24. 24. <ul><li>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. </li></ul><ul><li>The .NET Framework has extensive support for working with XML documents. In the .NET framework, the support for XML documents includes: </li></ul><ul><li>XML namespace </li></ul><ul><li>XML designer </li></ul><ul><li>XML Web Server control </li></ul><ul><li>XML DOM support </li></ul>(c) Biswadip Goswami, [email_address]
  25. 25. <ul><li>The System.Xml namespace provides a rich set of classes for processing XML data. The commonly used classes for working with XML data are: </li></ul><ul><li>XmlTextReader : </li></ul><ul><li>XmlTextReader reader = new XmlTextReader(&quot;XML1.xml&quot;); </li></ul><ul><li>XmlTextWriter: </li></ul><ul><li>XmlTextWriter writer = new XmlTextWriter(Response.Output); </li></ul><ul><li>XmlDocument: </li></ul><ul><li>XmlDocument doc = new XmlDocument(); </li></ul><ul><li>XmlDataDocument: </li></ul><ul><li>DataSet ds=new DataSet(); XmlDataDocument doc=new XmlDocument(ds); </li></ul>(c) Biswadip Goswami, [email_address]
  26. 26. <ul><li>XmlPathDocument: </li></ul><ul><li>XmlPathDocument doc=new XmlPathDocument(&quot;XML1.xml&quot;); </li></ul><ul><li>XmlNodeReader: </li></ul><ul><li>XmlDocument doc=new XmlPathDocument(); XmlNodeReader reader=new XmlNodeReader(doc); </li></ul><ul><li>XslTransform: </li></ul><ul><li>Xsltransform xslt = new XslTransform (); </li></ul>(c) Biswadip Goswami, [email_address]
  27. 27. <ul><li>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. </li></ul><ul><li>DocumentSource : Allows you to specify the URL or the path of the XML document to be displayed in the Web form. </li></ul><ul><li>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. </li></ul><ul><li>Document: Allows you to specify a reference to an object of the XMLDocument class. This property is available only at runtime. </li></ul><ul><li>Transform: Allows you to specify a reference to an object of the XMLTransform class. This property is available only at runtime. </li></ul>(c) Biswadip Goswami, [email_address]
  28. 28. (c) Biswadip Goswami, [email_address]
  29. 29. (c) Biswadip Goswami, [email_address]
  30. 30. (c) Biswadip Goswami, [email_address]
  31. 31. (c) Biswadip Goswami, [email_address]
  32. 32. (c) Biswadip Goswami, [email_address]
  33. 33. (c) Biswadip Goswami, [email_address]
  34. 34. Thank You ! <ul><li>For assistance with your ASP.Net requirements contact: </li></ul><ul><li>Biswadip Goswami </li></ul><ul><li>Primary e-mail: [email_address] </li></ul><ul><li>Alt e-mail: [email_address] </li></ul><ul><li>Webpage: </li></ul>(c) Biswadip Goswami, [email_address]