<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6057872561954738778</id><updated>2011-11-23T21:56:08.038-08:00</updated><category term='asp'/><category term='error'/><category term='connect'/><category term='database'/><category term='ado'/><category term='oracle'/><category term='db'/><category term='problem'/><title type='text'>How To ASP</title><subtitle type='html'>How to ASP, NET, Programming, Microsoft, Develop, Design, Patterns, Software.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://howtoasp.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6057872561954738778/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://howtoasp.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Administrador</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>10</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6057872561954738778.post-4944561333835569840</id><published>2007-07-03T11:33:00.001-07:00</published><updated>2007-07-03T11:33:15.548-07:00</updated><title type='text'>How To Access an Oracle Database by Using the OLE DB .NET Data Provider and Visual C# .NET</title><content type='html'>&lt;DIV&gt; &lt;H2 class=subTitle id=tocHeadRef&gt;&lt;FONT face=Verdana size=2&gt;SUMMARY&lt;/FONT&gt;&lt;/H2&gt; &lt;SCRIPT type=text/javascript&gt;loadTOCNode(1, 'summary');&lt;/SCRIPT&gt;  &lt;DIV class=sbody&gt;&lt;FONT face=Verdana size=2&gt;This article demonstrates how to use  the ADO.NET OLE DB managed provider to access an Oracle database.&lt;/FONT&gt;&lt;/DIV&gt; &lt;DIV class=sbody&gt;&lt;FONT face=Verdana size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt; &lt;H3 class=sbody id=tocHeadRef&gt;&lt;SPAN&gt;&lt;A id=2&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;FONT face=Verdana  size=2&gt;Requirements&lt;/FONT&gt;&lt;/H3&gt; &lt;DIV class=sbody&gt; &lt;SCRIPT type=text/javascript&gt;loadTOCNode(2, 'summary');&lt;/SCRIPT&gt; &lt;FONT face=Verdana size=2&gt;The following list outlines the recommended hardware,  software, network infrastructure, and service packs that you need: &lt;/FONT&gt;&lt;/DIV&gt; &lt;DIV class=sbody&gt; &lt;TABLE class="list ul"&gt;   &lt;TBODY&gt;   &lt;TR&gt;     &lt;TD class=bullet&gt;&lt;FONT face=Verdana size=2&gt;&lt;/FONT&gt;&lt;/TD&gt;     &lt;TD class=text&gt;&lt;FONT face=Verdana size=2&gt;Microsoft Windows 2000        Professional, Windows 2000 Server, Windows 2000 Advanced Server, or        Windows NT 4.0 Server&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;   &lt;TR&gt;     &lt;TD class=bullet&gt;&lt;FONT face=Verdana size=2&gt;&lt;/FONT&gt;&lt;/TD&gt;     &lt;TD class=text&gt;&lt;FONT face=Verdana size=2&gt;Oracle Client tools (installed on        the computer)&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;   &lt;TR&gt;     &lt;TD class=bullet&gt;&lt;FONT face=Verdana size=2&gt;&lt;/FONT&gt;&lt;/TD&gt;     &lt;TD class=text&gt;&lt;FONT face=Verdana size=2&gt;Microsoft Visual Studio        .NET&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt; &lt;DIV class=sbody&gt;&lt;FONT face=Verdana size=2&gt;This article assumes that you are  familiar with the following topics: &lt;/FONT&gt;&lt;/DIV&gt; &lt;DIV class=sbody&gt; &lt;TABLE class="list ul"&gt;   &lt;TBODY&gt;   &lt;TR&gt;     &lt;TD class=bullet&gt;&lt;FONT face=Verdana size=2&gt;&lt;/FONT&gt;&lt;/TD&gt;     &lt;TD class=text&gt;&lt;FONT face=Verdana size=2&gt;Visual Studio .NET&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;   &lt;TR&gt;     &lt;TD class=bullet&gt;&lt;FONT face=Verdana size=2&gt;&lt;/FONT&gt;&lt;/TD&gt;     &lt;TD class=text&gt;&lt;FONT face=Verdana size=2&gt;ADO.NET fundamentals and        syntax&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;   &lt;TR&gt;     &lt;TD class=bullet&gt;&lt;FONT face=Verdana size=2&gt;&lt;/FONT&gt;&lt;/TD&gt;     &lt;TD class=text&gt;&lt;FONT face=Verdana size=2&gt;Oracle    connectivity&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt; &lt;DIV class=sbody&gt;&amp;nbsp;&lt;/DIV&gt; &lt;DIV class=sbody&gt; &lt;H3 id=tocHeadRef&gt;&lt;SPAN&gt;&lt;A id=3&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;FONT size=2&gt;Steps to Access an  Oracle Database&lt;/FONT&gt;&lt;/H3&gt; &lt;SCRIPT type=text/javascript&gt;loadTOCNode(2, 'summary');&lt;/SCRIPT&gt;  &lt;TABLE class="list ol"&gt;   &lt;TBODY&gt;   &lt;TR&gt;     &lt;TD class=number&gt;&lt;FONT size=2&gt;1.&lt;/FONT&gt;&lt;/TD&gt;     &lt;TD class=text&gt;&lt;FONT size=2&gt;In Oracle, create a table named TestTable as        follows:&lt;/FONT&gt;&lt;CODE&gt;&lt;PRE class=code&gt;Create Table TestTable (c1 char(5)); 					&lt;/PRE&gt;&lt;/CODE&gt;&lt;/TD&gt;&lt;/TR&gt;   &lt;TR&gt;     &lt;TD class=number&gt;2.&lt;/TD&gt;     &lt;TD class=text&gt;Insert data into TestTable as follows:&lt;CODE&gt;&lt;PRE class=code&gt;Insert into TestTable c1 values('Test1'); Insert into TestTable c1 values('Test2'); Insert into TestTable c1 values('Test3'); 					&lt;/PRE&gt;&lt;/CODE&gt;&lt;/TD&gt;&lt;/TR&gt;   &lt;TR&gt;     &lt;TD class=number&gt;3&lt;FONT size=2&gt;.&lt;/FONT&gt;&lt;/TD&gt;     &lt;TD class=text&gt;&lt;FONT size=2&gt;Start Visual Studio .NET.&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;   &lt;TR&gt;     &lt;TD class=number&gt;&lt;FONT size=2&gt;4.&lt;/FONT&gt;&lt;/TD&gt;     &lt;TD class=text&gt;&lt;FONT size=2&gt;Create a new Windows Application project in        Visual C# .NET.&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;   &lt;TR&gt;     &lt;TD class=number&gt;&lt;FONT size=2&gt;5.&lt;/FONT&gt;&lt;/TD&gt;     &lt;TD class=text&gt;&lt;FONT size=2&gt;Make sure that your project contains a        reference to the &lt;B&gt;System.Data&lt;/B&gt; namespace, and add a reference to this        namespace if it does not.&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;   &lt;TR&gt;     &lt;TD class=number&gt;&lt;FONT size=2&gt;6.&lt;/FONT&gt;&lt;/TD&gt;     &lt;TD class=text&gt;&lt;FONT size=2&gt;Drag a &lt;B&gt;Button&lt;/B&gt; control to Form1, and        change its &lt;B&gt;Name&lt;/B&gt; property to &lt;SPAN        class=userInput&gt;btnTest&lt;/SPAN&gt;.&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;   &lt;TR&gt;     &lt;TD class=number&gt;&lt;FONT size=2&gt;7.&lt;/FONT&gt;&lt;/TD&gt;     &lt;TD class=text&gt;&lt;FONT face=Verdana&gt;&lt;FONT size=2&gt;&lt;FONT        face="Times New Roman"&gt;Use the &lt;B&gt;using&lt;/B&gt; statement on the        &lt;B&gt;System&lt;/B&gt;, &lt;B&gt;System.Data&lt;/B&gt;, and &lt;B&gt;System.Data.OleDb&lt;/B&gt; namespaces        so that you are not required to qualify declarations in those namespaces        later in your code&lt;/FONT&gt;.&lt;/FONT&gt;&lt;/FONT&gt;&lt;CODE&gt;&lt;PRE class=code&gt;using System; using System.Data; using System.Data.OleDb; 					&lt;/PRE&gt;&lt;/CODE&gt;&lt;/TD&gt;&lt;/TR&gt;   &lt;TR&gt;     &lt;TD class=number&gt;8.&lt;/TD&gt;     &lt;TD class=text&gt;Switch to Form view, and double-click &lt;B&gt;btnTest&lt;/B&gt; to add        the click event handler. Add the following code to the handler:&lt;CODE&gt;&lt;PRE class=code&gt;String sConnectionString =     "Provider=MSDAORA.1;User ID=myUID;password=myPWD;      Data Source=myOracleServer;Persist Security Info=False"; String mySelectQuery =     "SELECT * FROM TestTable where c1 LIKE ?";  OleDbConnection myConnection = new OleDbConnection(sConnectionString); OleDbCommand myCommand = new OleDbCommand(mySelectQuery, myConnection);  myCommand.Parameters.Add("@p1", OleDbType.Char, 5).Value = "Test%"; myConnection.Open(); OleDbDataReader myReader = myCommand.ExecuteReader(); int RecordCount=0; try {     while (myReader.Read())     {         RecordCount = RecordCount + 1; 	MessageBox.Show(myReader.GetString(0).ToString());     }     if (RecordCount == 0)     { 	MessageBox.Show("No data returned");     }     else     { 	MessageBox.Show("Number of records returned: " + RecordCount);     } } catch (Exception ex) {     MessageBox.Show(ex.ToString()); } finally {     myReader.Close();     myConnection.Close(); } 					&lt;/PRE&gt;&lt;/CODE&gt;&lt;/TD&gt;&lt;/TR&gt;   &lt;TR&gt;     &lt;TD class=number&gt;9.&lt;/TD&gt;     &lt;TD class=text&gt;&lt;FONT size=2&gt;Save your project.&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;   &lt;TR&gt;     &lt;TD class=number&gt;&lt;FONT size=2&gt;10.&lt;/FONT&gt;&lt;/TD&gt;     &lt;TD class=text&gt;&lt;FONT size=2&gt;On the &lt;B&gt;Debug&lt;/B&gt; menu, click &lt;B&gt;Start&lt;/B&gt;        to run your project.&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;   &lt;TR&gt;     &lt;TD class=number&gt;&lt;FONT size=2&gt;11.&lt;/FONT&gt;&lt;/TD&gt;     &lt;TD class=text&gt;&lt;FONT size=2&gt;Click the button to display the    data.&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt; &lt;DIV class=sbody&gt;&lt;BR&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;div class="blogger-post-footer"&gt;How to ASP, NET, Programming, Microsoft, Develop, Design, Patterns, Software&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6057872561954738778-4944561333835569840?l=howtoasp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtoasp.blogspot.com/feeds/4944561333835569840/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6057872561954738778&amp;postID=4944561333835569840' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6057872561954738778/posts/default/4944561333835569840'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6057872561954738778/posts/default/4944561333835569840'/><link rel='alternate' type='text/html' href='http://howtoasp.blogspot.com/2007/07/how-to-access-oracle-database-by-using.html' title='How To Access an Oracle Database by Using the OLE DB .NET Data Provider and Visual C# .NET'/><author><name>Administrador</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6057872561954738778.post-4748462596291486684</id><published>2007-06-26T06:45:00.001-07:00</published><updated>2007-06-26T06:45:29.679-07:00</updated><title type='text'>HOW TO Create a Local Web Server ASP.NET Application</title><content type='html'>&lt;DIV&gt;&lt;FONT size=2&gt; &lt;H3 id=tocHeadRef&gt;&lt;SPAN&gt;&lt;A id=2&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;FONT face=Verdana size=2&gt;Create a  Local Web Server ASP.NET Application&lt;/FONT&gt;&lt;/H3&gt; &lt;SCRIPT type=text/javascript&gt;loadTOCNode(2, 'summary');&lt;/SCRIPT&gt;  &lt;TABLE class="list ol"&gt;   &lt;TBODY&gt;   &lt;TR&gt;     &lt;TD class=number&gt;&lt;FONT face=Verdana size=2&gt;1.&lt;/FONT&gt;&lt;/TD&gt;     &lt;TD class=text&gt;&lt;FONT face=Verdana size=2&gt;Start Microsoft Visual Studio        .NET.&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;   &lt;TR&gt;     &lt;TD class=number&gt;&lt;FONT face=Verdana size=2&gt;2.&lt;/FONT&gt;&lt;/TD&gt;     &lt;TD class=text&gt;&lt;FONT face=Verdana size=2&gt;On the &lt;B&gt;File&lt;/B&gt; menu, point to        &lt;B&gt;New&lt;/B&gt;, and then click &lt;B&gt;Project&lt;/B&gt;.&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;   &lt;TR&gt;     &lt;TD class=number&gt;&lt;FONT face=Verdana size=2&gt;3.&lt;/FONT&gt;&lt;/TD&gt;     &lt;TD class=text&gt;&lt;FONT face=Verdana size=2&gt;In the &lt;B&gt;New Project&lt;/B&gt; dialog        box, click &lt;B&gt;Visual Basic Projects&lt;/B&gt; under &lt;B&gt;Project Types&lt;/B&gt;, and        then click &lt;B&gt;ASP.NET Web Application&lt;/B&gt; under &lt;B&gt;Templates&lt;/B&gt; to create        the project in Visual Basic.&lt;BR&gt;&lt;BR&gt;&lt;B&gt;NOTE&lt;/B&gt;: Alternatively, you can        click &lt;B&gt;Visual C# Project&lt;/B&gt; under &lt;B&gt;Project Types&lt;/B&gt;, and then click        &lt;B&gt;ASP.NET Web Application&lt;/B&gt; under &lt;B&gt;Templates&lt;/B&gt; to create the        project in Visual C#.&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;   &lt;TR&gt;     &lt;TD class=number&gt;&lt;FONT face=Verdana size=2&gt;4.&lt;/FONT&gt;&lt;/TD&gt;     &lt;TD class=text&gt;&lt;FONT face=Verdana size=2&gt;In the IIS Web folder (which is        typically /wwwroot), create the essential project references and files to        use as a starting point for your application: &lt;/FONT&gt;       &lt;TABLE class="list ul"&gt;         &lt;TBODY&gt;         &lt;TR&gt;           &lt;TD class=bullet&gt;&lt;FONT face=Verdana size=2&gt;&lt;/FONT&gt;&lt;/TD&gt;           &lt;TD class=text&gt;&lt;FONT face=Verdana&gt;&lt;FONT size=2&gt;&lt;B&gt;AssemblyInfo&lt;/B&gt;              (.vb file for Visual Basic or .cs file for Visual C#): Use this file              to describe the assembly and to specify version              information.&lt;/FONT&gt;&lt;/FONT&gt;&lt;CODE&gt;&lt;PRE class=code&gt;&lt;FONT face=Verdana size=2&gt;using System.Reflection; using System.Runtime.CompilerServices; [assembly: AssemblyTitle("")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("")] [assembly: AssemblyCopyright("")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")]		 [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyDelaySign(false)] [assembly: AssemblyKeyFile("")] [assembly: AssemblyKeyName("")] 						&lt;/FONT&gt;&lt;/PRE&gt;&lt;/CODE&gt;&lt;/TD&gt;&lt;/TR&gt;         &lt;TR&gt;           &lt;TD class=bullet&gt;&lt;FONT face=Verdana size=2&gt;&lt;/FONT&gt;&lt;/TD&gt;           &lt;TD class=text&gt;&lt;FONT face=Verdana&gt;&lt;FONT size=2&gt;&lt;B&gt;Global.asax&lt;/B&gt;:              The basic file Global.asax.cs that contains code for responding to              application-level events that ASP.NET  raises.&lt;BR&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;CODE&gt;&lt;PRE class=code&gt;&lt;FONT face=Verdana size=2&gt;&amp;lt;%@ Application Codebehind="Global.asax.cs" Inherits="WebApplication2.Global" %&amp;gt; 							&lt;/FONT&gt;&lt;/PRE&gt;&lt;/CODE&gt;&lt;FONT face=Verdana&gt;&lt;FONT              size=2&gt;&lt;B&gt;NOTE:&lt;/B&gt; The source of Global.asax.cs is not included in              this document.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;         &lt;TR&gt;           &lt;TD class=bullet&gt;&lt;FONT face=Verdana size=2&gt;&lt;/FONT&gt;&lt;/TD&gt;           &lt;TD class=text&gt;&lt;FONT face=Verdana&gt;&lt;FONT size=2&gt;&lt;B&gt;Styles.css&lt;/B&gt;:              This file contains the default HTML style          settings.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;         &lt;TR&gt;           &lt;TD class=bullet&gt;&lt;FONT face=Verdana size=2&gt;&lt;/FONT&gt;&lt;/TD&gt;           &lt;TD class=text&gt;&lt;FONT face=Verdana&gt;&lt;FONT size=2&gt;&lt;B&gt;Web.config&lt;/B&gt;:              This is an application configuration file that contains settings              that are specific to an application. This file contains              configuration settings that the common language runtime reads (such              as assembly binding policy, remoting objects, and so on), and              settings that the application can read.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;         &lt;TR&gt;           &lt;TD class=bullet&gt;&lt;FONT face=Verdana size=2&gt;&lt;/FONT&gt;&lt;/TD&gt;           &lt;TD class=text&gt;&lt;FONT face=Verdana&gt;&lt;FONT              size=2&gt;&lt;B&gt;Projectname.vsdisco&lt;/B&gt;: This is an XML-based file that              the ASP.NET dynamic XML Web service discovery process uses to              identify searchable paths on the Web server.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;         &lt;TR&gt;           &lt;TD class=bullet&gt;&lt;FONT face=Verdana size=2&gt;&lt;/FONT&gt;&lt;/TD&gt;           &lt;TD class=text&gt;&lt;FONT face=Verdana&gt;&lt;FONT size=2&gt;&lt;B&gt;WebForm1.aspx&lt;/B&gt;:              This file contains the portion of the default Web Forms page that              contains user interface elements (controls), similar to an HTML              page.&lt;/FONT&gt;&lt;/FONT&gt;&lt;CODE&gt;&lt;PRE class=code&gt;&lt;FONT face=Verdana size=2&gt;&amp;lt;%@ Page language="c#" Codebehind="WebForm1.aspx.cs"  AutoEventWireup="false" Inherits="WebApplication2.WebForm1" %&amp;gt; &amp;lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" &amp;gt;  &amp;lt;html&amp;gt;   &amp;lt;head&amp;gt;     &amp;lt;title&amp;gt;WebForm1&amp;lt;/title&amp;gt;     &amp;lt;meta name="GENERATOR" Content="Microsoft Visual Studio 7.0"&amp;gt;     &amp;lt;meta name="CODE_LANGUAGE" Content="C#"&amp;gt;     &amp;lt;meta name=vs_defaultClientScript content="JavaScript"&amp;gt;     &amp;lt;meta name=vs_targetSchema  content="http://schemas.microsoft.com/intellisense/ie5"&amp;gt;   &amp;lt;/head&amp;gt;   &amp;lt;body MS_POSITIONING="GridLayout"&amp;gt;     &amp;lt;form id="Form1" method="post" runat="server"&amp;gt;     &amp;lt;/form&amp;gt;   &amp;lt;/body&amp;gt; &amp;lt;/html&amp;gt; 						&lt;/FONT&gt;&lt;/PRE&gt;&lt;/CODE&gt;&lt;/TD&gt;&lt;/TR&gt;         &lt;TR&gt;           &lt;TD class=bullet&gt;&lt;FONT face=Verdana size=2&gt;&lt;/FONT&gt;&lt;/TD&gt;           &lt;TD class=text&gt;&lt;FONT face=Verdana&gt;&lt;FONT size=2&gt;&lt;B&gt;Webform1&lt;/B&gt; (.vb              file for Visual Basic or .cs file for Visual C#): This file contains              a class file for the default Web Forms page that contains the              system-generated and user code for the          page.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;/TR&gt;   &lt;TR&gt;     &lt;TD class=number&gt;&lt;FONT face=Verdana size=2&gt;5.&lt;/FONT&gt;&lt;/TD&gt;     &lt;TD class=text&gt;&lt;FONT face=Verdana size=2&gt;After you create the project, you        see an empty Web Form with that is named "WebForm1.aspx." This is the        workspace of the first page in a project, in which you can place WebForms,        HTML forms, Components, Data objects, and Clipboard elements from        ToolBox.&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;div class="blogger-post-footer"&gt;How to ASP, NET, Programming, Microsoft, Develop, Design, Patterns, Software&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6057872561954738778-4748462596291486684?l=howtoasp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtoasp.blogspot.com/feeds/4748462596291486684/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6057872561954738778&amp;postID=4748462596291486684' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6057872561954738778/posts/default/4748462596291486684'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6057872561954738778/posts/default/4748462596291486684'/><link rel='alternate' type='text/html' href='http://howtoasp.blogspot.com/2007/06/how-to-create-local-web-server-aspnet.html' title='HOW TO Create a Local Web Server ASP.NET Application'/><author><name>Administrador</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6057872561954738778.post-4552486076331200806</id><published>2007-06-19T11:12:00.001-07:00</published><updated>2007-06-19T11:12:31.479-07:00</updated><title type='text'>How To Disable ASP Session State in ASP.NET</title><content type='html'>&lt;DIV&gt;&lt;FONT face=Verdana&gt; &lt;H2 class=subTitle id=tocHeadRef&gt;&lt;FONT size=2&gt;SUMMARY&lt;/FONT&gt;&lt;/H2&gt; &lt;SCRIPT type=text/javascript&gt;loadTOCNode(1, 'summary');&lt;/SCRIPT&gt;  &lt;DIV class=sbody&gt;&lt;FONT size=2&gt;This step-by-step article demonstrates how to  disable session state in ASP.NET.&lt;BR&gt;&lt;BR&gt;When session state is enabled, ASP.NET  creates a session for every user who accesses the application, which is used to  identify the user across pages within the application. When session state is  disabled, user data is not tracked, and you cannot store information in the  &lt;B&gt;Session&lt;/B&gt; object or use the &lt;B&gt;Session_OnStart&lt;/B&gt; or &lt;B&gt;Session_OnEnd&lt;/B&gt;  events. By disabling session state, you can increase performance if the  application or the page does not require session state to enable it.&lt;BR&gt;&lt;BR&gt;In  ASP.NET, if you do not use the &lt;B&gt;Session&lt;/B&gt; object to store any data or if any  of the Session events (&lt;B&gt;Session_OnStart&lt;/B&gt; or &lt;B&gt;Session_OnEnd&lt;/B&gt;) is  handled, session state is disabled. A new &lt;B&gt;Session.SessionID&lt;/B&gt; is created  every time a single page is refreshed in one browser  session.&lt;BR&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;div class="blogger-post-footer"&gt;How to ASP, NET, Programming, Microsoft, Develop, Design, Patterns, Software&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6057872561954738778-4552486076331200806?l=howtoasp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtoasp.blogspot.com/feeds/4552486076331200806/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6057872561954738778&amp;postID=4552486076331200806' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6057872561954738778/posts/default/4552486076331200806'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6057872561954738778/posts/default/4552486076331200806'/><link rel='alternate' type='text/html' href='http://howtoasp.blogspot.com/2007/06/how-to-disable-asp-session-state-in.html' title='How To Disable ASP Session State in ASP.NET'/><author><name>Administrador</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6057872561954738778.post-800152671736871536</id><published>2007-06-19T10:55:00.001-07:00</published><updated>2007-06-19T10:55:48.855-07:00</updated><title type='text'>Developing Microsoft® .NET Controls with Microsoft Visual Basic® .NET</title><content type='html'>&lt;DIV&gt;&lt;SPAN class=776175217-19062007&gt;&lt;STRONG&gt;&lt;FONT face=Verdana size=2&gt;Customize  the intrinsic controls in the .NET Frameworkor build your ownfor better  usability&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt; &lt;DIV&gt;&lt;SPAN class=776175217-19062007&gt;&lt;STRONG&gt;&lt;FONT face=Verdana  size=2&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt; &lt;DIV&gt;&lt;SPAN class=776175217-19062007&gt;&lt;FONT face=Verdana size=2&gt;Every click on a  menu item or a dialog boxevery interaction with a controlshapes the user's  experience and satisfaction with your software. Learn how to maximize the  usability and impact of your Visual Basic .NETbased solutions by using the  powerful intrinsic controls in the .NET Framework right out of the boxor by  building complex controls from scratch. Expert developer and teacher John  Connell shares a wealth of code samples and techniques to illustrate how .NET  controls operate as well as how to integrate even the most complex controls into  Windows Forms and Microsoft ASP.NET Web Forms. Whether you're developing  in-house or commercial software, you'll learn how to build custom controls and  other interface components that make your programs easyand enjoyableto  use.&lt;BR&gt;&lt;BR&gt;- Discover how to use encryption technologies, isolated storage, and  serialization in the .NET Framework in your own programs and controls &lt;BR&gt;-  Build custom .NET type editors, type converters, and designers to add and manage  sophisticated properties in your custom controls &lt;BR&gt;- Learn how to inherit and  enhance .NET controlsfrom handling events to building custom designers &lt;BR&gt;-  Aggregate multiple .NET intrinsic controls into one user control for simpler,  custom functionality &lt;BR&gt;- Use GDI+ to perform hit tests, create dynamic  bitmaps, and add graphics to Windows Forms and ASP.NET controls&lt;BR&gt;- Add  licensing to your controls, including custom validation of authorized users  &lt;BR&gt;- Manipulate the built-in ASP.NET Web server controls, from basic HTML  wrappers to the powerful DataGrid control &lt;BR&gt;- Design ASP.NET custom server  controls to create Web page hit counters, wireless applications, and  more&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;div class="blogger-post-footer"&gt;How to ASP, NET, Programming, Microsoft, Develop, Design, Patterns, Software&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6057872561954738778-800152671736871536?l=howtoasp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtoasp.blogspot.com/feeds/800152671736871536/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6057872561954738778&amp;postID=800152671736871536' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6057872561954738778/posts/default/800152671736871536'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6057872561954738778/posts/default/800152671736871536'/><link rel='alternate' type='text/html' href='http://howtoasp.blogspot.com/2007/06/developing-microsoft-net-controls-with.html' title='Developing Microsoft® .NET Controls with Microsoft Visual Basic® .NET'/><author><name>Administrador</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6057872561954738778.post-5191022407434700437</id><published>2007-06-13T05:42:00.001-07:00</published><updated>2007-06-13T05:42:18.910-07:00</updated><title type='text'>HOW TO: Validate XML Fragments Against an XML Schema in Visual Basic .NET</title><content type='html'>&lt;DIV&gt; &lt;H2 class=subTitle id=tocHeadRef&gt;&lt;FONT size=2&gt;SUMMARY&lt;/FONT&gt;&lt;/H2&gt; &lt;SCRIPT type=text/javascript&gt;loadTOCNode(1, 'summary');&lt;/SCRIPT&gt;  &lt;DIV class=sbody&gt;&lt;FONT size=2&gt;This step-by-step article describes how to use  &lt;B&gt;XmlValidatingReader&lt;/B&gt; and &lt;B&gt;XMLSchemaCollection&lt;/B&gt; objects to validate an  Extensible Markup Language (XML) fragment against an XML schema.  &lt;BR&gt;&lt;BR&gt;&lt;B&gt;XmlValidatingReader&lt;/B&gt; implements the &lt;B&gt;XmlReader&lt;/B&gt; class and  provides support for XML data validation. The &lt;B&gt;Schemas&lt;/B&gt; property of  &lt;B&gt;XmlValidatingReader&lt;/B&gt; connects the reader to the schema files cached in an  &lt;B&gt;XmlSchemaCollection&lt;/B&gt;. The &lt;B&gt;ValidationType&lt;/B&gt; property of  &lt;B&gt;XmlValidatingReader&lt;/B&gt; specifies the type of validation the reader should  perform. If you set the property to &lt;B&gt;ValidationType.None&lt;/B&gt;, you create a  nonvalidating reader. &lt;BR&gt;&lt;BR&gt;You can only add XML Schema Definition Language  (XSD) schemas and XML-Data Reduced (XDR) schemas to &lt;B&gt;XmlSchemaCollection&lt;/B&gt;.  Use the &lt;B&gt;Add&lt;/B&gt; method with a namespace URI to load schemas. For XML schemas,  the typical namespace URI is the &lt;B&gt;targetNamespace&lt;/B&gt; property of the  schema.&lt;/FONT&gt;&lt;/DIV&gt; &lt;DIV class=sbody&gt;&lt;FONT size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt; &lt;H2 class=sbody id=tocHeadRef&gt;&lt;SPAN&gt;&lt;A id=2&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;FONT  size=2&gt;Requirements&lt;/FONT&gt;&lt;/H2&gt; &lt;DIV class=sbody&gt; &lt;SCRIPT type=text/javascript&gt;loadTOCNode(2, 'summary');&lt;/SCRIPT&gt; &lt;FONT size=2&gt;The following list outlines the recommended hardware, software,  network infrastructure, and service packs that you will need: &lt;/FONT&gt;&lt;/DIV&gt; &lt;DIV class=sbody&gt; &lt;TABLE class="list ul"&gt;   &lt;TBODY&gt;   &lt;TR&gt;     &lt;TD class=bullet&gt;&lt;FONT size=2&gt;&lt;/FONT&gt;&lt;/TD&gt;     &lt;TD class=text&gt;&lt;FONT size=2&gt;Microsoft Visual Studio .NET installed on a        compatible Microsoft Windows operating  system&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt; &lt;DIV class=sbody&gt;&lt;FONT size=2&gt;This article assumes that you are familiar with  the following topics: &lt;/FONT&gt;&lt;/DIV&gt; &lt;DIV class=sbody&gt; &lt;TABLE class="list ul"&gt;   &lt;TBODY&gt;   &lt;TR&gt;     &lt;TD class=bullet&gt;&lt;FONT size=2&gt;&lt;/FONT&gt;&lt;/TD&gt;     &lt;TD class=text&gt;&lt;FONT size=2&gt;Visual Basic .NET&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;   &lt;TR&gt;     &lt;TD class=bullet&gt;&lt;FONT size=2&gt;&lt;/FONT&gt;&lt;/TD&gt;     &lt;TD class=text&gt;&lt;FONT size=2&gt;Basic XML standards&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;   &lt;TR&gt;     &lt;TD class=bullet&gt;&lt;FONT size=2&gt;&lt;/FONT&gt;&lt;/TD&gt;     &lt;TD class=text&gt;&lt;FONT size=2&gt;XSD schemas&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt; &lt;DIV class=sbody&gt;&lt;FONT size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt; &lt;DIV class=sbody&gt; &lt;H3 id=tocHeadRef&gt;&lt;SPAN&gt;&lt;A id=3&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;FONT size=2&gt;Create an XSD  Schema&lt;/FONT&gt;&lt;/H3&gt; &lt;SCRIPT type=text/javascript&gt;loadTOCNode(2, 'summary');&lt;/SCRIPT&gt; &lt;FONT size=2&gt;Paste the following code in a new text file named  C:\Books.xsd:&lt;/FONT&gt;&lt;/DIV&gt; &lt;DIV class=sbody&gt;&lt;FONT size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt; &lt;DIV class=sbody&gt;&lt;FONT size=2&gt;&amp;lt;xsd:schema  xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:bookstore-schema"  elementFormDefault="qualified"  targetNamespace="urn:bookstore-schema"&amp;gt;&lt;BR&gt;	&amp;lt;xsd:element name="bookstore"  type="bookstoreType" /&amp;gt;&lt;BR&gt;	&amp;lt;xsd:element name="comment" type="xsd:string"  /&amp;gt;&lt;BR&gt;	&amp;lt;xsd:element name="author"  type="authorName"/&amp;gt;&lt;BR&gt;	&amp;lt;xsd:complexType  name="authorName"&amp;gt;&lt;BR&gt;		&amp;lt;xsd:sequence&amp;gt;&lt;BR&gt;			&amp;lt;xsd:element  name="first-name" type="xsd:string" /&amp;gt;&lt;BR&gt;			&amp;lt;xsd:element name="last-name"  type="xsd:string"  /&amp;gt;&lt;BR&gt;		&amp;lt;/xsd:sequence&amp;gt;&lt;BR&gt;	&amp;lt;/xsd:complexType&amp;gt;&lt;BR&gt;	&amp;lt;xsd:complexType  name="bookstoreType"&amp;gt;&lt;BR&gt;		&amp;lt;xsd:sequence  maxOccurs="unbounded"&amp;gt;&lt;BR&gt;			&amp;lt;xsd:element name="book" type="bookType"  /&amp;gt;&lt;BR&gt;			&amp;lt;xsd:element ref="comment" minOccurs="0"  /&amp;gt;&lt;BR&gt;		&amp;lt;/xsd:sequence&amp;gt;&lt;BR&gt;	&amp;lt;/xsd:complexType&amp;gt;&lt;BR&gt;	&amp;lt;xsd:complexType  name="bookType"&amp;gt;&lt;BR&gt;		&amp;lt;xsd:sequence&amp;gt;&lt;BR&gt;			&amp;lt;xsd:element name="title"  type="xsd:string" /&amp;gt;&lt;BR&gt;			&amp;lt;xsd:element ref="author"  /&amp;gt;&lt;BR&gt;			&amp;lt;xsd:element name="price" type="xsd:decimal"  /&amp;gt;&lt;BR&gt;		&amp;lt;/xsd:sequence&amp;gt;&lt;BR&gt;		&amp;lt;xsd:attribute name="genre"  type="xsd:string"  /&amp;gt;&lt;BR&gt;	&amp;lt;/xsd:complexType&amp;gt;&lt;BR&gt;	&lt;BR&gt;&amp;lt;/xsd:schema&amp;gt;&lt;/FONT&gt;&lt;/DIV&gt; &lt;DIV class=sbody&gt;&lt;FONT face=Verdana size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt; &lt;DIV class=sbody&gt; &lt;H3 id=tocHeadRef&gt;&lt;SPAN&gt;&lt;A id=4&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;FONT size=2&gt;Create a Visual Basic  .NET Application&lt;/FONT&gt;&lt;/H3&gt;&lt;/DIV&gt; &lt;DIV class=sbody&gt;&lt;STRONG&gt;&lt;FONT size=2&gt;&lt;SPAN class=683243112-13062007&gt;1.  &lt;/SPAN&gt;Create a new Visual Basic .NET Windows application&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt; &lt;DIV class=sbody&gt;&lt;FONT face=Verdana size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt; &lt;DIV class=sbody&gt;&lt;STRONG&gt;&lt;FONT size=2&gt;&lt;SPAN class=683243112-13062007&gt;2.  &lt;/SPAN&gt;Drag Button1 to Form1. Paste the following code to add a private member  variable to Class Form1&lt;SPAN  class=683243112-13062007&gt;:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt; &lt;DIV class=sbody&gt;&lt;FONT face=Verdana size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt; &lt;DIV class=sbody&gt;&lt;FONT size=2&gt;Dim m_success As Boolean&lt;BR&gt;&lt;/FONT&gt;&lt;/DIV&gt; &lt;DIV class=sbody&gt;&lt;STRONG&gt;&lt;FONT size=2&gt;&lt;SPAN class=683243112-13062007&gt;3.  &lt;/SPAN&gt;Paste the following sub procedure to create a ValidationEventHandler that  raises validation errors in the XMLValidatingReader  object:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;	&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt; &lt;DIV class=sbody&gt;&lt;FONT face=Verdana size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt; &lt;DIV class=sbody&gt;&lt;FONT size=2&gt;Public Sub ValidationEventHandle(ByVal sender As  Object, ByVal args As  ValidationEventArgs)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; m_success =  False&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  Console.WriteLine((ControlChars.CrLf &amp;amp; ControlChars.Tab &amp;amp; "Validation  error: " &amp;amp; args.Message))&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub  'ValidationEventHandle&lt;/FONT&gt;&lt;/DIV&gt; &lt;DIV class=sbody&gt;&lt;FONT face=Verdana size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt; &lt;DIV class=sbody&gt;&lt;FONT size=2&gt;&lt;STRONG&gt;NOTE&lt;/STRONG&gt;: You must include an event  handler to receive information about validation errors in the Data Type  Definition (DTD), the XML-Data Reduced (XDR) schema, and the XML schema  definition language (XSD) schema. The event handler receives an argument of type  &lt;B&gt;ValidationEventArgs&lt;/B&gt; that contains data related to this event. &lt;BR&gt;&lt;BR&gt;The  callback handler can use the &lt;B&gt;ValidationEventArgs.Severity&lt;/B&gt; property to  guarantee that an XML instance document is validated against a schema. The  &lt;B&gt;Severity&lt;/B&gt; property enables you to distinguish between a validation error  (&lt;B&gt;Severity&lt;/B&gt; is equal to &lt;B&gt;XmlSeverityType.Error&lt;/B&gt;) which indicates a  fatal error, and a validation warning (&lt;B&gt;Severity&lt;/B&gt; is equal to  &lt;B&gt;XmlSeverityType.Warning&lt;/B&gt;) which indicates that no schema information is  available.&lt;/FONT&gt;&lt;/DIV&gt; &lt;DIV class=sbody&gt;&lt;FONT face=Verdana size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt; &lt;DIV class=sbody&gt;&lt;STRONG&gt;&lt;FONT size=2&gt;&lt;SPAN class=683243112-13062007&gt;4.  &lt;/SPAN&gt;Paste the following code in the Button1_Click event  procedure:&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt; &lt;DIV class=sbody&gt;&lt;FONT face=Verdana size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt; &lt;DIV class=sbody&gt;&lt;FONT size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim  reader As XmlValidatingReader =  Nothing&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim myschema As New  XmlSchemaCollection()&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  Try&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  'Create the XML fragment to be  parsed.&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  Dim xmlFrag As String = "&amp;lt;author&amp;nbsp; xmlns='urn:bookstore-schema'  xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'&amp;gt;" &amp;amp;  _&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  "&amp;lt;first-name&amp;gt;Herman&amp;lt;/first-name&amp;gt;" &amp;amp;  _&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  "&amp;lt;last-name&amp;gt;Melville&amp;lt;/last-name&amp;gt;" &amp;amp;  _&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  "&amp;lt;/author&amp;gt;"&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  'Create the  XmlParserContext.&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  Dim context As New XmlParserContext(Nothing, Nothing, "",  XmlSpace.None)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  'Implement the reader.  &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; reader =  New XmlValidatingReader(xmlFrag, XmlNodeType.Element,  context)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  'Add the  schema.&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  myschema.Add("urn:bookstore-schema",  "Books.xsd")&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  'Set the schema type and add the schema to the  reader.&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  reader.ValidationType =  ValidationType.Schema&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  reader.Schemas.Add(myschema)&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  'Add the handler to raise the validation  event.&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  AddHandler reader.ValidationEventHandler, AddressOf  Me.ValidationEventHandle&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  While  reader.Read&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  End While&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  Console.WriteLine("Completed validating  xmlfragment")&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Catch XmlExp As  XmlException&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  Console.WriteLine(XmlExp.Message)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  Catch XmlSchExp As  XmlSchemaException&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  Console.WriteLine(XmlSchExp.Message)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  Catch GenExp As  Exception&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  Console.WriteLine(GenExp.Message)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  End Try&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub&lt;BR&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt; &lt;DIV class=sbody&gt;&lt;STRONG&gt;&lt;FONT size=2&gt;&lt;SPAN  class=683243112-13062007&gt;5.&lt;/SPAN&gt;When the following message is displayed in the  output window, the XML fragment is a valid element:&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt; &lt;DIV class=sbody&gt;&lt;FONT face=Verdana size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt; &lt;DIV class=sbody&gt;&lt;FONT size=2&gt;Completed validating xmlfragment&lt;/FONT&gt;&lt;/DIV&gt; &lt;DIV class=sbody&gt;&lt;FONT face=Verdana size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt; &lt;DIV class=sbody&gt;&lt;FONT size=2&gt;&lt;STRONG&gt;NOTE&lt;/STRONG&gt;: The  &lt;B&gt;XMLValidatingReader&lt;/B&gt; object validates only the type declarations and the  top level elements in the XML Schema. XML fragments, such as sub elements, are  considered to be local. You cannot pass XML fragments to  &lt;B&gt;XmlValidatingReader&lt;/B&gt; for direct validation unless you declare the XML  fragments as top-level elements and set the reference at the required level.  &lt;/FONT&gt;&lt;/DIV&gt; &lt;DIV class=sbody&gt;&lt;FONT size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt; &lt;DIV class=sbody&gt; &lt;H5&gt;APPLIES TO&lt;/H5&gt; &lt;TABLE class=list&gt;   &lt;TBODY&gt;   &lt;TR&gt;     &lt;TD class=bullet&gt;&lt;SPAN class=683243112-13062007&gt;&lt;FONT face=Verdana        size=2&gt;-&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/TD&gt;     &lt;TD class=text&gt;&lt;FONT size=2&gt;Microsoft Visual Basic .NET 2003 Standard        Edition&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;   &lt;TR&gt;     &lt;TD class=bullet&gt;&lt;SPAN class=683243112-13062007&gt;&lt;FONT        size=2&gt;-&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/TD&gt;     &lt;TD class=text&gt;&lt;FONT size=2&gt;Microsoft Visual Basic .NET 2002 Standard        Edition&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;   &lt;TR&gt;     &lt;TD class=bullet&gt;&lt;SPAN class=683243112-13062007&gt;&lt;FONT        size=2&gt;-&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/TD&gt;     &lt;TD class=text&gt;&lt;FONT size=2&gt;Microsoft .NET Framework 1.1&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;   &lt;TR&gt;     &lt;TD class=bullet&gt;&lt;SPAN class=683243112-13062007&gt;&lt;FONT        size=2&gt;-&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/TD&gt;     &lt;TD class=text&gt;&lt;FONT size=2&gt;Microsoft .NET Framework    1.0&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;div class="blogger-post-footer"&gt;How to ASP, NET, Programming, Microsoft, Develop, Design, Patterns, Software&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6057872561954738778-5191022407434700437?l=howtoasp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtoasp.blogspot.com/feeds/5191022407434700437/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6057872561954738778&amp;postID=5191022407434700437' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6057872561954738778/posts/default/5191022407434700437'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6057872561954738778/posts/default/5191022407434700437'/><link rel='alternate' type='text/html' href='http://howtoasp.blogspot.com/2007/06/how-to-validate-xml-fragments-against.html' title='HOW TO: Validate XML Fragments Against an XML Schema in Visual Basic .NET'/><author><name>Administrador</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6057872561954738778.post-4178375262452570837</id><published>2007-06-13T05:28:00.001-07:00</published><updated>2007-06-13T05:28:50.998-07:00</updated><title type='text'>How to connect to an Oracle database by using ASP and ADO</title><content type='html'>&lt;DIV&gt;&lt;FONT face=Tahoma size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt; &lt;DIV&gt; &lt;DIV&gt;&lt;FONT size=1&gt;&lt;SPAN lang=FR  style="FONT-SIZE: 8pt; FONT-FAMILY: Verdana; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: FR; mso-fareast-language: ES; mso-bidi-language: AR-SA"&gt;&lt;SPAN  lang=FR  style="FONT-SIZE: 8pt; FONT-FAMILY: Verdana; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: FR; mso-fareast-language: ES; mso-bidi-language: AR-SA"&gt; &lt;H2 class=subTitle id=tocHeadRef&gt;&lt;FONT size=2&gt;INTRODUCTION&lt;/FONT&gt;&lt;/H2&gt; &lt;SCRIPT type=text/javascript&gt;loadTOCNode(1, 'summary');&lt;/SCRIPT&gt;  &lt;DIV class=sbody&gt;&lt;FONT size=2&gt;This article discusses how to connect to an Oracle  database by using a Microsoft Active Server Pages (ASP) page and Microsoft  ActiveX Data Objects (ADO).&lt;/FONT&gt;&lt;/DIV&gt; &lt;DIV class=sbody&gt;&lt;FONT size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt; &lt;DIV class=sbody&gt; &lt;H2 class=subTitle id=tocHeadRef&gt;&lt;FONT size=2&gt;&lt;SPAN  class=303092112-13062007&gt;M&lt;/SPAN&gt;ORE INFORMATION&lt;/FONT&gt;&lt;/H2&gt; &lt;SCRIPT type=text/javascript&gt;loadTOCNode(1, 'moreinformation');&lt;/SCRIPT&gt;  &lt;DIV class=sbody&gt;&lt;FONT size=2&gt;To connect to an Oracle database, you can create  an ASP page that contains the following code.&lt;/FONT&gt;&lt;/DIV&gt; &lt;DIV class=sbody&gt;&lt;FONT size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt; &lt;DIV class=sbody&gt;&lt;FONT size=2&gt;&lt;STRONG&gt;Note&lt;/STRONG&gt; &lt;/FONT&gt;&lt;/DIV&gt; &lt;DIV class=sbody&gt;&lt;FONT size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt; &lt;DIV class=sbody&gt;&lt;FONT size=2&gt;Make sure that the connect string has a valid user  ID and password and that the SQL statement references a valid  table.&lt;/FONT&gt;&lt;/DIV&gt; &lt;DIV class=sbody&gt;&lt;FONT size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt; &lt;DIV class=sbody&gt;&amp;lt;%@ Language=VBScript %&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;  &amp;lt;html&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp; &amp;lt;head&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp; &amp;lt;title&amp;gt;Oracle  Test&amp;lt;/title&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/head&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;  &amp;lt;body&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp; &amp;lt;center&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;  &amp;lt;%&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set objConn =  Server.CreateObject("ADODB.Connection")&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; objConn.Open  "Provider=MSDAORA;Data Source=&amp;lt;Your_TNSNames_Alias&amp;gt;;User  Id=&amp;lt;userid&amp;gt;;Password=&amp;lt;password&amp;gt;;"&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  Set objRs = objConn.Execute("SELECT * FROM  DEMO.EMPLOYEE")&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Response.Write "&amp;lt;table  border=1 cellpadding=4&amp;gt;"&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Response.Write  "&amp;lt;tr&amp;gt;"&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For I = 0 To objRS.Fields.Count -  1&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Response.Write "&amp;lt;td&amp;gt;&amp;lt;b&amp;gt;"  &amp;amp; objRS(I).Name &amp;amp; "&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;"&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  Next&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Response.Write  "&amp;lt;/tr&amp;gt;"&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Do While Not  objRS.EOF&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Response.Write  "&amp;lt;tr&amp;gt;"&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For I = 0 To  objRS.Fields.Count - 1&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  Response.Write "&amp;lt;td&amp;gt;" &amp;amp; objRS(I) &amp;amp;  "&amp;lt;/td&amp;gt;"&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  Next&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Response.Write  "&amp;lt;/tr&amp;gt;"&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  objRS.MoveNext&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Loop&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  Response.Write "&amp;lt;/table&amp;gt;"&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  objRs.Close&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; objConn.Close&lt;BR&gt;&amp;nbsp;&amp;nbsp;  %&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/center&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;  &amp;lt;/body&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/html&amp;gt;&lt;/DIV&gt; &lt;DIV class=sbody&gt;&amp;nbsp;&lt;/DIV&gt; &lt;DIV class=sbody&gt; &lt;H5&gt;APPLIES TO&lt;/H5&gt; &lt;TABLE class=list&gt;   &lt;TBODY&gt;   &lt;TR&gt;     &lt;TD class=bullet&gt;&lt;SPAN class=303092112-13062007&gt;&lt;FONT        size=2&gt;-&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/TD&gt;     &lt;TD class=text&gt;&lt;FONT size=2&gt;Microsoft Active Server Pages 4.0&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;   &lt;TR&gt;     &lt;TD class=bullet&gt;&lt;SPAN class=303092112-13062007&gt;&lt;FONT        size=2&gt;-&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/TD&gt;     &lt;TD class=text&gt;&lt;FONT size=2&gt;Microsoft Internet Information Services        6.0&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;   &lt;TR&gt;     &lt;TD class=bullet&gt;&lt;SPAN class=303092112-13062007&gt;&lt;FONT        size=2&gt;-&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/TD&gt;     &lt;TD class=text&gt;&lt;FONT size=2&gt;Microsoft Data Access Components    2.8&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;div class="blogger-post-footer"&gt;How to ASP, NET, Programming, Microsoft, Develop, Design, Patterns, Software&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6057872561954738778-4178375262452570837?l=howtoasp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtoasp.blogspot.com/feeds/4178375262452570837/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6057872561954738778&amp;postID=4178375262452570837' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6057872561954738778/posts/default/4178375262452570837'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6057872561954738778/posts/default/4178375262452570837'/><link rel='alternate' type='text/html' href='http://howtoasp.blogspot.com/2007/06/how-to-connect-to-oracle-database-by.html' title='How to connect to an Oracle database by using ASP and ADO'/><author><name>Administrador</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6057872561954738778.post-8800188095899766108</id><published>2007-06-08T08:32:00.001-07:00</published><updated>2007-06-08T08:32:16.125-07:00</updated><title type='text'>Applied Microsoft .NET Framework Programming </title><content type='html'>&lt;DIV&gt;&lt;FONT face=Verdana size=2&gt;&lt;EM&gt;Applied Microsoft .NET Framework  Programming&lt;/EM&gt; is a tutorial. It's meant for programmers who already know an  object-oriented language and want to apply their knowledge in the standardized  environment provided by the Microsoft .NET Framework. The book, written by  Jeffrey Richter, a programmer and the .NET columnist at Microsoft's magazine for  its developer community, takes a more or less language-agnostic approach to the  run-time environment (though many illustrative examples are in C#). It aims to  untangle the Common Language Runtime (CLR) and some of the Framework Class  Library (FCL), and generally succeeds, particularly at the former. Richter  shares his knowledge of the key classes you can instantiate in the CLR, and the  kinds of operations you can perform on and with them.  &lt;P&gt;You can read this book, or individual chapters, from beginning to end. You'll  probably find it more helpful, though, if you read individual sections as you  encounter problems or develop an interest in specific aspects of the CLR (ideal  for those middle-of-the-night "I wonder how it does..." questions). Richter  typically lets his code do most of the talking, and he'll often introduce a  section with a prose summary of the CLR way of doing something (sometimes with a  supplementary diagram) before unleashing a string of quick examples that  illustrate variations on the theme. In an unusual and helpful tutorial move, he  makes heavy use of the ILDASM utility to show what goes on at compile time.&lt;/P&gt; &lt;P&gt;&lt;STRONG&gt;Topics covered:&lt;/STRONG&gt; How the Microsoft .NET Framework--in other  words, the Common Language Runtime (CLR) and parts of the Framework Class  Library (FCL)--runs Microsoft .NET applications, and how to write software for  the framework. Shared assemblies, characteristics of CLR types (including their  properties, methods, fields, and events), and object orientation all get ample  coverage. There's particularly detailed information on text manipulation  (including internationalization and localization), arrays, custom interfaces,  and the managed environment (garbage collection) in the CLR environment.  &lt;BR&gt;&lt;BR&gt;&lt;B&gt;Book Description&lt;/B&gt;&lt;BR&gt;This title takes advanced developers and  software designers under the covers of .NET to provide them with an in-depth  understanding of its structure, functions, and operational components so they  can create high-performance applications for .NET more easily and efficiently.  Developers learn to program .NET applications while gaining a solid  understanding of fundamental .NET design tenets. This title not only covers the  infrastructure and architecture of .NET in-depth but also shows developers the  most practical ways to apply that knowledge.&lt;/P&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;div class="blogger-post-footer"&gt;How to ASP, NET, Programming, Microsoft, Develop, Design, Patterns, Software&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6057872561954738778-8800188095899766108?l=howtoasp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtoasp.blogspot.com/feeds/8800188095899766108/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6057872561954738778&amp;postID=8800188095899766108' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6057872561954738778/posts/default/8800188095899766108'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6057872561954738778/posts/default/8800188095899766108'/><link rel='alternate' type='text/html' href='http://howtoasp.blogspot.com/2007/06/applied-microsoft-net-framework.html' title='Applied Microsoft .NET Framework Programming '/><author><name>Administrador</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6057872561954738778.post-4982541556184008145</id><published>2007-05-07T16:28:00.000-07:00</published><updated>2007-05-07T16:31:25.990-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='database'/><category scheme='http://www.blogger.com/atom/ns#' term='oracle'/><category scheme='http://www.blogger.com/atom/ns#' term='db'/><category scheme='http://www.blogger.com/atom/ns#' term='asp'/><title type='text'>Make Your ASP Work With An Oracle Database</title><content type='html'>Oracle is one of the most popular databases in the world, also Active Server Pages (ASP) is a powerful server-side scripting language widely used to build dynamic Web pages. There are many ASP developers who wonder if they can use the ASP technology with Oracle database to build a web application, E-commerce and E-business web sites or internet management systems. The answer is YES! You can access Oracle using VB to create Oracle Applications as well. Here, I will discuss with you how to use ASP dealing with Oracle data.&lt;br /&gt;&lt;br /&gt;Before we start, there are a few things you need to know. The Oracle Objects for OLE (OO4O) method is one of them. The OO4O is an Oracle middleware that allows native access to Oracle from client applications using the Microsoft Object Linking and Embedding (OLE) standard. Some of you may think that the ODBC can be used. Surely, you can use the standard database access method developed by Microsoft Corporation to access Oracle, but in my opinion the OO4O is better than ODBC because the OO4O is thread safe and provides full support for PL/SQL. PL/SQL stands for Procedural Language/SQL. It is an Oracle extension of the SQL statement set which allows the developer to impose flow control and logic design onto unstructured SQL command blocks. If you have fully installed Oracle8i, I am sure the OO4O is there for use already. If not, you can download it from Oracle web site.      &lt;br /&gt;&lt;br /&gt;The other thing is, we need know two objects and one interface that Oracle developed for Visual Basic Development, OraSession and OraDynaset objects, and OraDatabase interface. The OraSession object manages collections of OraDatabase, OraConnection, and OraDynaset  used within an application. It is the object created by the CreateObject ASP and not by an OO4O method. The OraDatabase interface represents a user session to an Oracle database and provides methods for SQL and PL/SQL execution. Each of them has some of properties, and methods. For instance, the OraDynaset has some of properties, such as BOF, EOF, Bookmark, Connection, and so on, and ten methods, such as AddNew, Update, Delete, Edit, Refresh, Clone, and so on. &lt;br /&gt;&lt;br /&gt;Now, let's start working on Oracle data using ASP technology. &lt;br /&gt;&lt;br /&gt;Source: &lt;a ref="http://www.asp101.com/articles/colin/oracle/default.asp" target="_new"&gt;ASP 101&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;How to ASP, NET, Programming, Microsoft, Develop, Design, Patterns, Software&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6057872561954738778-4982541556184008145?l=howtoasp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtoasp.blogspot.com/feeds/4982541556184008145/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6057872561954738778&amp;postID=4982541556184008145' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6057872561954738778/posts/default/4982541556184008145'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6057872561954738778/posts/default/4982541556184008145'/><link rel='alternate' type='text/html' href='http://howtoasp.blogspot.com/2007/05/make-your-asp-work-with-oracle-database.html' title='Make Your ASP Work With An Oracle Database'/><author><name>Administrador</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6057872561954738778.post-4137572470526788474</id><published>2007-05-07T16:27:00.001-07:00</published><updated>2007-05-07T16:27:46.950-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='problem'/><category scheme='http://www.blogger.com/atom/ns#' term='error'/><category scheme='http://www.blogger.com/atom/ns#' term='connect'/><category scheme='http://www.blogger.com/atom/ns#' term='oracle'/><category scheme='http://www.blogger.com/atom/ns#' term='db'/><title type='text'>How To Troubleshoot an ASP-to-Oracle Connectivity Problem</title><content type='html'>This article outlines some of the common steps to take when you troubleshoot a problem with a connection to an Oracle Database from an Active Server Pages (ASP) application. Some of the more common error messages are: &lt;br /&gt;&lt;br /&gt;Microsoft OLE DB Provider for ODBC Drivers error '80004005' [Oracle][ODBC][Ora]ORA-12154: TNS:Could not resolve service name /vdir/filename.asp, line xxx. &lt;br /&gt;&lt;br /&gt;-and- &lt;br /&gt;&lt;br /&gt;The Oracle(tm) client and networking components were not found. These components are supplied by Oracle Corporation and are part of the Oracle Version 7.3 (or greater) client software installation. &lt;br /&gt;&lt;br /&gt;You will be unable to use this driver until these components have been installed.&lt;br /&gt;&lt;br /&gt;Source: &lt;a ref="http://support.microsoft.com/kb/255084/en-us" target="_new"&gt;Microsoft&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;How to ASP, NET, Programming, Microsoft, Develop, Design, Patterns, Software&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6057872561954738778-4137572470526788474?l=howtoasp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtoasp.blogspot.com/feeds/4137572470526788474/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6057872561954738778&amp;postID=4137572470526788474' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6057872561954738778/posts/default/4137572470526788474'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6057872561954738778/posts/default/4137572470526788474'/><link rel='alternate' type='text/html' href='http://howtoasp.blogspot.com/2007/05/how-to-troubleshoot-asp-to-oracle.html' title='How To Troubleshoot an ASP-to-Oracle Connectivity Problem'/><author><name>Administrador</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6057872561954738778.post-3851822063132252401</id><published>2007-05-07T16:26:00.000-07:00</published><updated>2007-05-07T16:27:17.802-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ado'/><category scheme='http://www.blogger.com/atom/ns#' term='oracle'/><category scheme='http://www.blogger.com/atom/ns#' term='db'/><category scheme='http://www.blogger.com/atom/ns#' term='asp'/><title type='text'>How to connect to an Oracle database by using ASP and ADO</title><content type='html'>This article discusses how to connect to an Oracle database by using a Microsoft Active Server Pages (ASP) page and Microsoft ActiveX Data Objects (ADO).&lt;br /&gt;&lt;br /&gt;Source: &lt;a ref="http://support.microsoft.com/kb/193225" target="_new"&gt;Microsoft&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;How to ASP, NET, Programming, Microsoft, Develop, Design, Patterns, Software&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6057872561954738778-3851822063132252401?l=howtoasp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtoasp.blogspot.com/feeds/3851822063132252401/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6057872561954738778&amp;postID=3851822063132252401' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6057872561954738778/posts/default/3851822063132252401'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6057872561954738778/posts/default/3851822063132252401'/><link rel='alternate' type='text/html' href='http://howtoasp.blogspot.com/2007/05/how-to-connect-to-oracle-database-by.html' title='How to connect to an Oracle database by using ASP and ADO'/><author><name>Administrador</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
