<?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-3561874704503752546</id><updated>2011-11-27T15:59:53.241-08:00</updated><title type='text'>ASP Stuff</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://asp-stuff.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3561874704503752546/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://asp-stuff.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>ria</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>6</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3561874704503752546.post-4520219759840366237</id><published>2008-01-28T06:03:00.001-08:00</published><updated>2008-01-28T06:03:59.593-08:00</updated><title type='text'>Change File/Folder permissions on godaddy web server</title><content type='html'>Following is the process to set up permissions on a godaddy account:&lt;br /&gt;&lt;br /&gt;Login using your user name/account number and password&lt;br /&gt;Click on My Account&lt;br /&gt;Click on Hosting Account List&lt;br /&gt;Click on Open (the web hosting package you want to open)&lt;br /&gt;Scroll down to content and Click File Manager&lt;br /&gt;Select the domain folder you want to set permissions for and click permissions button on the upper control bar&lt;br /&gt;Set the required permissions and click OK&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3561874704503752546-4520219759840366237?l=asp-stuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asp-stuff.blogspot.com/feeds/4520219759840366237/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3561874704503752546&amp;postID=4520219759840366237' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3561874704503752546/posts/default/4520219759840366237'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3561874704503752546/posts/default/4520219759840366237'/><link rel='alternate' type='text/html' href='http://asp-stuff.blogspot.com/2008/01/change-filefolder-permissions-on.html' title='Change File/Folder permissions on godaddy web server'/><author><name>ria</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-3561874704503752546.post-7475998740936602874</id><published>2008-01-25T07:27:00.000-08:00</published><updated>2008-01-25T07:29:12.673-08:00</updated><title type='text'>XML Path Conventions</title><content type='html'>using xml files:&lt;br /&gt;before uploading:&lt;br /&gt;path conventions&lt;br /&gt;&lt;br /&gt;Server.MapPath("\abcsitename\registration")&amp;amp;"\xyz.xml"&lt;br /&gt;&lt;br /&gt;after uploading:&lt;br /&gt;path conventions&lt;br /&gt;&lt;br /&gt;Server.MapPath("\registration")&amp;amp;"\xyz.xml"&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3561874704503752546-7475998740936602874?l=asp-stuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asp-stuff.blogspot.com/feeds/7475998740936602874/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3561874704503752546&amp;postID=7475998740936602874' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3561874704503752546/posts/default/7475998740936602874'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3561874704503752546/posts/default/7475998740936602874'/><link rel='alternate' type='text/html' href='http://asp-stuff.blogspot.com/2008/01/xml-path-conventions.html' title='XML Path Conventions'/><author><name>ria</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-3561874704503752546.post-4688509860034745697</id><published>2007-09-18T09:20:00.001-07:00</published><updated>2007-09-18T09:20:41.966-07:00</updated><title type='text'>Displaying records from an excel file</title><content type='html'>Aim of this articles is to display records from an Microsoft Excel in an ASP. We could use general SQL command while retreving data from an excel sheet. All we need to know how to connect Excel file.&lt;br /&gt;&lt;br /&gt;Here is the excel database connection string :&lt;br /&gt;&lt;br /&gt;Connection String for Excel&lt;br /&gt;&lt;br /&gt;strConnection = "DBQ=" &amp;amp; Server.MapPath("customer-list.xls") &amp;amp; "; DRIVER={Microsoft Excel Driver (*.xls)};"&lt;br /&gt;&lt;br /&gt;We will use a specific driver to connect to Excel files. ODBC plays a major role in coding.&lt;br /&gt;&lt;br /&gt;An Example :&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;strConnection = "DBQ=" &amp;amp; Server.MapPath("customer-list.xls") &amp;amp; "; DRIVER={Microsoft Excel Driver (*.xls)};"&lt;br /&gt;&lt;br /&gt;Set cn = Server.CreateObject("ADODB.Connection")&lt;br /&gt;Set rs = Server.CreateObject("ADODB.Recordset")&lt;br /&gt;cn.open strConnection&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;sql="select * from sales_in_2005;"&lt;br /&gt;&lt;br /&gt;rs.Open sql, cn, adOpenStatic, adLockPessimistic&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;do while not rs.eof&lt;br /&gt;response.write rs("customerName") &amp;amp; " : " &amp;amp; rs("soldPrice") &amp;amp; "&lt;br /&gt;"&lt;br /&gt;rs.movenext&lt;br /&gt;loop&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;rs.close&lt;br /&gt;Set rs = nothing&lt;br /&gt;cn.close&lt;br /&gt;Set cn = nothing&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In this example, we have used an example Excel files that holds some data containing customerName and soldPrice cells. We have displayed all cells with sample data on our page.&lt;br /&gt;&lt;br /&gt;Happy Coding&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3561874704503752546-4688509860034745697?l=asp-stuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asp-stuff.blogspot.com/feeds/4688509860034745697/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3561874704503752546&amp;postID=4688509860034745697' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3561874704503752546/posts/default/4688509860034745697'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3561874704503752546/posts/default/4688509860034745697'/><link rel='alternate' type='text/html' href='http://asp-stuff.blogspot.com/2007/09/displaying-records-from-excel-file.html' title='Displaying records from an excel file'/><author><name>ria</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-3561874704503752546.post-4077013515771639124</id><published>2007-09-18T07:28:00.000-07:00</published><updated>2007-09-18T07:32:04.347-07:00</updated><title type='text'>Reading &amp; Writing to an excel file</title><content type='html'>You can store data in a Microsoft Excel Spreadsheet and then use ASP to extract the infromation. The spreadsheet acts like a database and you can use standard SQL statements to query the data. The process is fairly simple and I will break it down into three steps:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;STEP-1: Create an Excel Spreadsheet&lt;br /&gt;&lt;br /&gt;STEP-2: Define named ranges in the spreadsheet&lt;br /&gt;&lt;br /&gt;STEP-3: Write ASP code read the file&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;STEP-1:&lt;br /&gt;&lt;br /&gt;Lets get started with the spreadsheet. You MUST have Microsoft Excel installed on your computer to create and Excel Spreadsheet. I have created a folder called "excel" under C:\Inetpub\wwwroot\&lt;br /&gt;and thats where I will create/save my Excel spreadsheet.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;a) Open Excel and create a spreadsheet that looks like this:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In this sheet the SR, NAME and EMAIL are the column names. When we query the data from this spreadsheet, we can limit the results by selecting only one or two columns e.g. SELECT NAME FROM my_range;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;STEP-2:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now that we have created a spreadsheet, its time to define a named range within Excel that will be treated as a table for our SQL statement. To create a named range, select all the fields that have data in them, with the column names, then go to INSERT &gt; Name &gt; Define... &gt; Type in my_range &gt; Press OK &gt; Save your file in C:\inetpub\wwwroot\excel\excel.xls&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I have saved my excel file as excel.xls.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;STEP-3:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now that we have the excel file and the named range in place, we can start working on the ASP code. Here is the code to read this excel file using a DSN-LESS approach&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To test the code, point your browser to http://127.0.0.1/excel/read_excel.asp and you will see the following output:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You can customize the out anyway you want and the possibilities are endless :)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Enjoy and Happy ASP'ing.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Following are some links that were very helpful when I was digging up this information:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.webdeveloper.com/forum/showthread.php?t=77596"&gt;http://www.webdeveloper.com/forum/showthread.php?t=77596&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.carlprothman.net/Default.aspx?tabid=81"&gt;http://www.carlprothman.net/Default.aspx?tabid=81&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://support.microsoft.com/kb/195951"&gt;http://support.microsoft.com/kb/195951&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;MSDN&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;More Tutorials at &lt;a href="http://www.nabeelakhtar.net/"&gt;http://www.NabeelAkhtar.NET&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Tutorial Discussion Forums: &lt;a href="http://forum.nabeelakhtar.net/"&gt;http://Forum.NabeelAkhtar.NET&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3561874704503752546-4077013515771639124?l=asp-stuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asp-stuff.blogspot.com/feeds/4077013515771639124/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3561874704503752546&amp;postID=4077013515771639124' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3561874704503752546/posts/default/4077013515771639124'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3561874704503752546/posts/default/4077013515771639124'/><link rel='alternate' type='text/html' href='http://asp-stuff.blogspot.com/2007/09/reading-writing-to-excel-file.html' title='Reading &amp; Writing to an excel file'/><author><name>ria</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-3561874704503752546.post-7318113673314781500</id><published>2007-07-20T06:46:00.000-07:00</published><updated>2007-07-22T02:28:13.810-07:00</updated><title type='text'>Methods and properties of Microsoft.XMLDOM</title><content type='html'>&lt;strong&gt;&lt;span style="font-size:130%;"&gt;Document&lt;/span&gt; &lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Properties&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;asyncboolean: specifies whether asynchronous download of the document is permitted.&lt;br /&gt;doctype&lt;br /&gt;documentElement&lt;br /&gt;implementation&lt;br /&gt;ondataavailable [ie]&lt;br /&gt;onreadystateChange [ie]&lt;br /&gt;ontransformnode [ie]&lt;br /&gt;parseError [ie]&lt;br /&gt;preserveWhiteSpace [ie]&lt;br /&gt;readyState&lt;br /&gt;resolveExternals [ie]&lt;br /&gt;setProperty ) [ie]The following (2nd level) properties can be set:&lt;br /&gt;AllowDocumentFunction&lt;br /&gt;ForcedResync&lt;br /&gt;MaxXMLSize&lt;br /&gt;NewParser&lt;br /&gt;SelectionLanguage&lt;br /&gt;SelectionNamespace&lt;br /&gt;ServerHTTPRequest&lt;br /&gt;for example: xmlDoc.setProperty("SelectionLanguage", "XPath");selection = xmlDoc.selectNodes("//Customer");&lt;br /&gt;url [ie]&lt;br /&gt;validateOnParse [ie]&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;strong&gt;Methods&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;abort [ie]&lt;br /&gt;createAttribute&lt;br /&gt;createCDATASection (data )&lt;br /&gt;createComment (comment)&lt;br /&gt;createDocumentFragment (data )&lt;br /&gt;createElement (tagName)&lt;br /&gt;createEntityReference (name )&lt;br /&gt;createNode [ie] (type, name, nameSpaceURI)&lt;br /&gt;createProcessingInstruction (target, data)&lt;br /&gt;createTextNode (data)&lt;br /&gt;getElementsByTagName (tagName)&lt;br /&gt;load [ie] (url)&lt;br /&gt;loadXML [ie] (xml_string)&lt;br /&gt;nodeFromID [ie] (id_string)&lt;br /&gt;save [ie] (objTarget)&lt;br /&gt;&lt;br /&gt;For properties and methods of NODE object, visit the actual link: &lt;a href="http://www.adp-gmbh.ch/web/js/msxmldom/methods_properties.html"&gt;http://www.adp-gmbh.ch/web/js/msxmldom/methods_properties.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3561874704503752546-7318113673314781500?l=asp-stuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asp-stuff.blogspot.com/feeds/7318113673314781500/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3561874704503752546&amp;postID=7318113673314781500' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3561874704503752546/posts/default/7318113673314781500'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3561874704503752546/posts/default/7318113673314781500'/><link rel='alternate' type='text/html' href='http://asp-stuff.blogspot.com/2007/07/methods-and-properties-of.html' title='Methods and properties of Microsoft.XMLDOM'/><author><name>ria</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-3561874704503752546.post-6859654074755464938</id><published>2007-07-19T05:30:00.000-07:00</published><updated>2007-07-20T06:45:17.116-07:00</updated><title type='text'>Create &amp; Save an XML file using ASP</title><content type='html'>Create and Save an XML FileStoring data in XML files is useful if the data is to be sent to applications on non-Windows platforms. Remember that XML is portable across all platforms and the data will not need to be converted!&lt;br /&gt;First we will learn how to create and save an XML file. The XML file below will be named "test.xml" and will be stored in the c directory on the server. We will use ASP and Microsoft's XMLDOM object to create and save the XML file:&lt;br /&gt;&lt;br /&gt;'ASP CODE STARTS NOW&lt;br /&gt;Dim xmlDoc, rootEl, child1, child2, p'Create an XML document&lt;br /&gt;Set xmlDoc = Server.CreateObject("Microsoft.XMLDOM")'Create a root element and append it to the document&lt;br /&gt;Set rootEl = xmlDoc.createElement("root")&lt;br /&gt;xmlDoc.appendChild rootEl'Create and append child elements&lt;br /&gt;Set child1 = xmlDoc.createElement("child1")&lt;br /&gt;Set child2 = xmlDoc.createElement("child2")&lt;br /&gt;rootEl.appendChild child1&lt;br /&gt;rootEl.appendChild child2'Add an XML processing instruction&lt;br /&gt;'and insert it before the root element&lt;br /&gt;Set p=xmlDoc.createProcessingInstruction("xml","version='1.0'")&lt;br /&gt;xmlDoc.insertBefore p,xmlDoc.childNodes(0)'Save the XML file to the c directory&lt;br /&gt;xmlDoc.Save "c:\test.xml"&lt;br /&gt;'ASP CODE ENDS HERE&lt;br /&gt;&lt;pre&gt;For complete article, visit: &lt;a href="http://www.w3schools.com/xml/xml_savedata.asp"&gt;http://www.w3schools.com/xml/xml_savedata.asp&lt;/a&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3561874704503752546-6859654074755464938?l=asp-stuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asp-stuff.blogspot.com/feeds/6859654074755464938/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3561874704503752546&amp;postID=6859654074755464938' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3561874704503752546/posts/default/6859654074755464938'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3561874704503752546/posts/default/6859654074755464938'/><link rel='alternate' type='text/html' href='http://asp-stuff.blogspot.com/2007/07/create-save-xml-file-using-asp.html' title='Create &amp; Save an XML file using ASP'/><author><name>ria</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>
