<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/tags/ASP</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Mon, 13 Feb 2012 15:26:02 GMT</pubDate>
<item>
<title>(ASP) Redirect a page to another domain in ASP - ajbatac</title>
<link>http://snipplr.com/view/55795/redirect-a-page-to-another-domain-in-asp/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 28 Jun 2011 01:11:55 GMT</pubDate>
<guid>http://snipplr.com/view/55795/redirect-a-page-to-another-domain-in-asp/</guid>
</item>
<item>
<title>(ASP) proxy.asp - bcmoney</title>
<link>http://snipplr.com/view/45553/proxyasp/</link>
<description><![CDATA[ <p>Classic ASP with VBscript (i.e. ASP.net before dominance of C#), some resources used:

http://www.webcheatsheet.com/asp/get_current_page_url.php

http://support.microsoft.com/kb/290591

http://w3schools.com/asp/asp_examples.asp

http://msdn.microsoft.com/en-us/library/ms762278(VS.85).aspx

http://www.mikesdotnetting.com/Article/39/AJAX-and-Classic-ASP

http://www.w3enterprises.com/articles/aspnet.aspx

http://www.asp101.com/samples/winhttp5.asp

http://www.devarticles.com/c/a/ASP/An-Introduction-To-XML-SOAP-Using-ASP-and-VB6/

http://www.tizag.com/aspTutorial/aspVBScript.php

http://classicasp.aspfaq.com/general/how-do-i-read-the-contents-of-a-remote-web-page.html</p> ]]></description>
<pubDate>Fri, 10 Dec 2010 09:37:36 GMT</pubDate>
<guid>http://snipplr.com/view/45553/proxyasp/</guid>
</item>
<item>
<title>(ASP) Default Visual Web Developer 2008 ASPX template - oyvindrobertsen</title>
<link>http://snipplr.com/view/43575/default-visual-web-developer-2008-aspx-template/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 04 Nov 2010 23:23:33 GMT</pubDate>
<guid>http://snipplr.com/view/43575/default-visual-web-developer-2008-aspx-template/</guid>
</item>
<item>
<title>(ASP) Convert database queries to xml using asp - mchadwick</title>
<link>http://snipplr.com/view/38471/convert-database-queries-to-xml-using-asp/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 05 Aug 2010 01:24:08 GMT</pubDate>
<guid>http://snipplr.com/view/38471/convert-database-queries-to-xml-using-asp/</guid>
</item>
<item>
<title>(JavaScript) sharepoint root url - rumremix</title>
<link>http://snipplr.com/view/38126/sharepoint-root-url/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 31 Jul 2010 08:24:36 GMT</pubDate>
<guid>http://snipplr.com/view/38126/sharepoint-root-url/</guid>
</item>
<item>
<title>(PHP) classic ASP instr for PHP - seloh77</title>
<link>http://snipplr.com/view/37227/classic-asp-instr-for-php/</link>
<description><![CDATA[ <p>I used to program in classic ASP and would sometimes check if a certain word or letter would be in a string with instr.

if instr(haystack, needle)>0 then
   DO SOMETHING
end if

If the needle starts on the first position of the haystack, instr returns 1.
If the needle is not in the haystack, instr returns 0.

PHP has the strpos and stripos functions which return FALSE if the needle is not in the haystack and return 0 if the needle starts on the first position of the haystack.
I wanted to be able to do a quick check on a string, without checking type so I created the instr function for PHP.

if (instr($haystack, $needle)>0)
{
   DO SOMETHING
}

(an offset can be given but is optional)</p> ]]></description>
<pubDate>Tue, 13 Jul 2010 23:02:50 GMT</pubDate>
<guid>http://snipplr.com/view/37227/classic-asp-instr-for-php/</guid>
</item>
<item>
<title>(ASP) Call ASP Page Inside HTML page - Meander365</title>
<link>http://snipplr.com/view/35323/call-asp-page-inside-html-page/</link>
<description><![CDATA[ <p>This is useful when you need to add logic to static html page.</p> ]]></description>
<pubDate>Sun, 30 May 2010 02:18:24 GMT</pubDate>
<guid>http://snipplr.com/view/35323/call-asp-page-inside-html-page/</guid>
</item>
<item>
<title>(ASP) List files in a directory - wizard04</title>
<link>http://snipplr.com/view/33419/list-files-in-a-directory/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 28 Apr 2010 08:44:42 GMT</pubDate>
<guid>http://snipplr.com/view/33419/list-files-in-a-directory/</guid>
</item>
<item>
<title>(ASP) Set your Twitter status via API (without oAuth) - emregulcan</title>
<link>http://snipplr.com/view/33285/set-your-twitter-status-via-api-without-oauth/</link>
<description><![CDATA[ <p>This script works good condition, and not use "oAuth".
Your should get username and password with cleartext (standart html controls) without authentication and just add them into variables in your code...
(twitter_username  and twitter_password)
And also get status from textbox and set variable named "new_status"</p> ]]></description>
<pubDate>Tue, 27 Apr 2010 07:04:38 GMT</pubDate>
<guid>http://snipplr.com/view/33285/set-your-twitter-status-via-api-without-oauth/</guid>
</item>
<item>
<title>(ASP) Serve HTML Table as Excel Worksheet - wizard04</title>
<link>http://snipplr.com/view/32339/serve-html-table-as-excel-worksheet/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 19 Apr 2010 13:07:11 GMT</pubDate>
<guid>http://snipplr.com/view/32339/serve-html-table-as-excel-worksheet/</guid>
</item>
<item>
<title>(ASP) ASP Shuffle Array - elightbo</title>
<link>http://snipplr.com/view/30972/asp-shuffle-array/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 06 Apr 2010 10:42:33 GMT</pubDate>
<guid>http://snipplr.com/view/30972/asp-shuffle-array/</guid>
</item>
<item>
<title>(C#) Asynchronous ASP.Net Pages, AJAX Helper, WebRequest Passthrough - bryanlyman</title>
<link>http://snipplr.com/view/28142/asynchronous-aspnet-pages-ajax-helper-webrequest-passthrough/</link>
<description><![CDATA[ <p>.net 3.0+, Ajax calls allow for true asynchronous communication through a browser. You may not notice it until you have a server call that takes awhile, but just because AJAX is allowing it, that doesn't mean the server is acting in a truly asynchronous manner. By default aspx pages will asynchronously allow multiple calls to the same session, however, a thread-lock is placed on each subsequent call so that each incoming request must wait for the previous to finish before the response stream can be accessed. This is a nice protection measure to keep a page programmer from ripping their hair out because of multi-threading data access issues and dead-lock scenarios; but it is inversely annoying to one trying to allow asynchronicity. The solution to allow true multi-threaded asynchronous behavior isn't an easy one, but the following code is a step in the right direction. The first thing you should know is that to make a page act asynchronously is to set the "Async" attribute in the page directive of the aspx page being called </p> ]]></description>
<pubDate>Wed, 10 Feb 2010 16:21:15 GMT</pubDate>
<guid>http://snipplr.com/view/28142/asynchronous-aspnet-pages-ajax-helper-webrequest-passthrough/</guid>
</item>
<item>
<title>(ASP) Are Arrays Equal - jlvallelonga</title>
<link>http://snipplr.com/view/25783/are-arrays-equal/</link>
<description><![CDATA[ <p>This function checks to see if two arrays are equal</p> ]]></description>
<pubDate>Thu, 31 Dec 2009 12:56:39 GMT</pubDate>
<guid>http://snipplr.com/view/25783/are-arrays-equal/</guid>
</item>
<item>
<title>(ASP) Setup ASP codepage as UTF-8 - timshingyu</title>
<link>http://snipplr.com/view/24583/setup-asp-codepage-as-utf8/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 11 Dec 2009 04:04:08 GMT</pubDate>
<guid>http://snipplr.com/view/24583/setup-asp-codepage-as-utf8/</guid>
</item>
<item>
<title>(ASP) Shorten text ASP function - elightbo</title>
<link>http://snipplr.com/view/20840/shorten-text-asp-function/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 08 Oct 2009 12:32:54 GMT</pubDate>
<guid>http://snipplr.com/view/20840/shorten-text-asp-function/</guid>
</item>
<item>
<title>(ASP) ASP (vbscript): Retrieve Remote XML RSS Feed, Modify Using Regular Expression, and then Save to Local XML File - karlhorky</title>
<link>http://snipplr.com/view/20484/asp-vbscript-retrieve-remote-xml-rss-feed-modify-using-regular-expression-and-then-save-to-local-xml-file/</link>
<description><![CDATA[ <p>This script will retrieve a remote xml rss feed, modify it based upon a date extracted from a remote html document (using a regular expression), and save it to a local file.</p> ]]></description>
<pubDate>Wed, 30 Sep 2009 15:00:49 GMT</pubDate>
<guid>http://snipplr.com/view/20484/asp-vbscript-retrieve-remote-xml-rss-feed-modify-using-regular-expression-and-then-save-to-local-xml-file/</guid>
</item>
<item>
<title>(ASP) contains value - jlvallelonga</title>
<link>http://snipplr.com/view/20264/contains-value/</link>
<description><![CDATA[ <p>This function returns whether or not the value was found in the array</p> ]]></description>
<pubDate>Fri, 25 Sep 2009 11:44:12 GMT</pubDate>
<guid>http://snipplr.com/view/20264/contains-value/</guid>
</item>
<item>
<title>(Other) Check if empty array - elightbo</title>
<link>http://snipplr.com/view/19917/check-if-empty-array/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 18 Sep 2009 11:47:07 GMT</pubDate>
<guid>http://snipplr.com/view/19917/check-if-empty-array/</guid>
</item>
<item>
<title>(Other) ASP 301 Redirect - elightbo</title>
<link>http://snipplr.com/view/19833/asp-301-redirect/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 16 Sep 2009 16:56:39 GMT</pubDate>
<guid>http://snipplr.com/view/19833/asp-301-redirect/</guid>
</item>
<item>
<title>(ASP) VBScript Regular Expression Search and Replace Functions - wizard04</title>
<link>http://snipplr.com/view/19559/vbscript-regular-expression-search-and-replace-functions/</link>
<description><![CDATA[ <p>Functions to make using regular expressions a bit easier. They're named after the respective PHP function.</p> ]]></description>
<pubDate>Fri, 11 Sep 2009 11:53:57 GMT</pubDate>
<guid>http://snipplr.com/view/19559/vbscript-regular-expression-search-and-replace-functions/</guid>
</item>
</channel>
</rss>
