<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>

<channel>
	<title>Netexceed Code Library</title>
	<atom:link href="http://code.netexceed.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://code.netexceed.com</link>
	<description>Jason Mohan's code snippets and library</description>
	<pubDate>Fri, 24 Oct 2008 15:36:42 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
	<language>en</language>
			<item>
		<title>Upload a file using asp</title>
		<link>http://code.netexceed.com/asp/upload-a-file-using-asp/</link>
		<comments>http://code.netexceed.com/asp/upload-a-file-using-asp/#comments</comments>
		<pubDate>Fri, 24 Oct 2008 15:31:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[asp]]></category>

		<category><![CDATA[upload]]></category>

		<guid isPermaLink="false">http://code.netexceed.com/?p=132</guid>
		<description><![CDATA[This shows you how to upload a file using asp. Note you will need the aspupload component from Persists software. 
Take the object from a form

   
      
   
   

Now save it from the form. 



This is the file name it was saved as [...]]]></description>
			<content:encoded><![CDATA[<p>This shows you how to upload a file using asp. Note you will need the aspupload component from Persists software. </p>
<p>Take the object from a form<br />
<code><br />
   <FORM METHOD="POST" ENCTYPE="multipart/form-data" ACTION="UploadScript1.asp"><br />
      <INPUT TYPE="FILE" SIZE="40" NAME="FILE1"><BR><br />
   <INPUT TYPE=SUBMIT VALUE="Upload!"><br />
   </FORM><br />
</code></p>
<p>Now save it from the form. </p>
<p><code><br />
<%<br />
Set Upload = Server.CreateObject("Persits.Upload.1")<br />
Upload.OverwriteFiles = False<br />
Upload.SetMaxSize 4000000, True<br />
Upload.Save "d:\webprojects\test"</p>
<p>If Err.Number = 8 Then<br />
   Response.Write "Your file is too large, we do not accept file sizes over<br />
   3mb."<br />
Else<br />
   If Err <> 0 Then<br />
      	Response.Write &#8220;An error occurred: &#8221; &#038; Err.Description<br />
   Else<br />
		Set File = Upload.Files(&#8221;FILE1&#8243;)<br />
		Ext = UCase(Right(File.Path, 3))<br />
			If Ext <> &#8220;TXT&#8221; and Ext <> &#8220;DOC&#8221; Then<br />
      			Response.Write &#8220;I&#8217;m sorry the file you uploaded<br />
                        <b>&#8221; &#038; File.FileName &#038; &#8220;</b> is not a .doc or .txt.<br />
                        We do not accept any other file types.&#8221;<br />
      			File.Delete<br />
      			kill_code = 1<br />
   			else<br />
   		    	Response.Write &#8220;Thank you, your file has been attached&#8221;<br />
   			End If<br />
   End If<br />
End If</p>
<p>If kill_code <> 1 then<br />
	If Not File Is Nothing Then<br />
   		file_code = File.FileName<br />
	End If<br />
end if</p>
<p>%></p>
<p><%</p>
<p>'Response.Write Count.File.Name<br />
'file_code = File.Name<br />
%><br />
This is the file name it was saved as <%= file_code %><br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://code.netexceed.com/asp/upload-a-file-using-asp/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Take a user back from where they came from</title>
		<link>http://code.netexceed.com/javascript/take-a-user-back-from-where-they-came-from/</link>
		<comments>http://code.netexceed.com/javascript/take-a-user-back-from-where-they-came-from/#comments</comments>
		<pubDate>Fri, 24 Oct 2008 15:29:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[javascript]]></category>

		<category><![CDATA[back]]></category>

		<guid isPermaLink="false">http://code.netexceed.com/?p=130</guid>
		<description><![CDATA[This javascript shows you how to take a visitor back where they came from. 



]]></description>
			<content:encoded><![CDATA[<p>This javascript shows you how to take a visitor back where they came from. </p>
<p><code><br />
<a href="javascript:history.back(1)"></a><br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://code.netexceed.com/javascript/take-a-user-back-from-where-they-came-from/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Do loop in asp</title>
		<link>http://code.netexceed.com/asp/do-loop-in-asp/</link>
		<comments>http://code.netexceed.com/asp/do-loop-in-asp/#comments</comments>
		<pubDate>Fri, 24 Oct 2008 15:28:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[asp]]></category>

		<category><![CDATA[do loop]]></category>

		<guid isPermaLink="false">http://code.netexceed.com/?p=128</guid>
		<description><![CDATA[This is an example of a do look in asp. 

Do While Not (objAppID.EOF)
objAppID.MoveNext
Loop

]]></description>
			<content:encoded><![CDATA[<p>This is an example of a do look in asp. </p>
<p><code><br />
Do While Not (objAppID.EOF)</p>
<p>objAppID.MoveNext<br />
Loop<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://code.netexceed.com/asp/do-loop-in-asp/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Send an attachment in a email using asp</title>
		<link>http://code.netexceed.com/asp/send-an-attachment-in-a-email-using-asp/</link>
		<comments>http://code.netexceed.com/asp/send-an-attachment-in-a-email-using-asp/#comments</comments>
		<pubDate>Fri, 24 Oct 2008 15:26:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[asp]]></category>

		<category><![CDATA[attachment]]></category>

		<category><![CDATA[Email]]></category>

		<guid isPermaLink="false">http://code.netexceed.com/?p=126</guid>
		<description><![CDATA[This shows you how to send a attachment via email using asp. 

strFile = "c:\dir\file.vcs"
Set oNewMail = Server.CreateObject("CDONTS.NewMail")
    oNewMail.From = "fuscptc@eximc.nam.dow.com"
    oNewMail.To = "u369373@eximc.nam.dow.com"
    oNewMail.Subject = "Updated Education &#038; Training Session"
    oNewMail.BodyFormat = 1
    oNewMail.MailFormat = 0
    [...]]]></description>
			<content:encoded><![CDATA[<p>This shows you how to send a attachment via email using asp. </p>
<p><code><br />
strFile = "c:\dir\file.vcs"</p>
<p>Set oNewMail = Server.CreateObject("CDONTS.NewMail")<br />
    oNewMail.From = "fuscptc@eximc.nam.dow.com"<br />
    oNewMail.To = "u369373@eximc.nam.dow.com"<br />
    oNewMail.Subject = "Updated Education &#038; Training Session"<br />
    oNewMail.BodyFormat = 1<br />
    oNewMail.MailFormat = 0<br />
    oNewMail.Body = "This email confirms that blah."<br />
    oNewMail.Send<br />
    oNewMail.AttachFile strFile<br />
Set oNewMail = Nothing<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://code.netexceed.com/asp/send-an-attachment-in-a-email-using-asp/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to post a form</title>
		<link>http://code.netexceed.com/html/how-to-post-a-form/</link>
		<comments>http://code.netexceed.com/html/how-to-post-a-form/#comments</comments>
		<pubDate>Fri, 24 Oct 2008 15:23:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[html]]></category>

		<category><![CDATA[form]]></category>

		<guid isPermaLink="false">http://code.netexceed.com/?p=124</guid>
		<description><![CDATA[How to post a form in html.




]]></description>
			<content:encoded><![CDATA[<p>How to post a form in html.</p>
<p><code></p>
<form method="post" action="apply.asp?pid=2" name="postrun1">
</form>
<p></code></p>
]]></content:encoded>
			<wfw:commentRss>http://code.netexceed.com/html/how-to-post-a-form/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Sending html based emails using asp</title>
		<link>http://code.netexceed.com/asp/sending-html-based-emails-using-asp/</link>
		<comments>http://code.netexceed.com/asp/sending-html-based-emails-using-asp/#comments</comments>
		<pubDate>Fri, 24 Oct 2008 15:21:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[asp]]></category>

		<category><![CDATA[Email]]></category>

		<guid isPermaLink="false">http://code.netexceed.com/?p=122</guid>
		<description><![CDATA[This shows you how to send a html email using asp. 

		Set objMailJ1 = CreateObject("CDONTS.NewMail")
					html = "
&#8221;
					html = html &#038; &#8220;


&#8221;
					html = html &#038; &#8220;

&#160;Intranet
&#8221;
					html = html &#038; &#8220;




&#8221;
						objMailJ1.From=&#8221;intranet@no-spam.com&#8221;
						objMailJ1.To=&#8221;sender@no-spam.com&#8221;
						objMailJ1.Subject=&#8221;Subject Line - &#8221; &#038; vendor_name &#038; &#8220;&#8221;
						objMailJ1.BodyFormat=0
						objMailJ1.MailFormat=0
						objMailJ1.Body=html
						objMailJ1.Send

]]></description>
			<content:encoded><![CDATA[<p>This shows you how to send a html email using asp. </p>
<p><code><br />
		Set objMailJ1 = CreateObject("CDONTS.NewMail")</p>
<p>					html = "<body>
<p>&#8221;<br />
					html = html &#038; &#8220;<br />
<tr>
<td width=""100%"">
<table border=""0"" cellpadding=""0"" cellspacing=""0"" style=""border-collapse: collapse"" bordercolor=""#111111"" width=""100%"" height=""168"">&#8221;<br />
					html = html &#038; &#8220;<br />
<tr>
<td width=""36%"" height=""19"" bgcolor=""#F0F0F0""><font size=""1"" face=""MS Sans Serif"">&nbsp;Intranet</font></td>
<p>&#8221;<br />
					html = html &#038; &#8220;</tr>
</table>
</td>
</tr>
</table>
<p></body>&#8221;<br />
						objMailJ1.From=&#8221;intranet@no-spam.com&#8221;<br />
						objMailJ1.To=&#8221;sender@no-spam.com&#8221;<br />
						objMailJ1.Subject=&#8221;Subject Line - &#8221; &#038; vendor_name &#038; &#8220;&#8221;<br />
						objMailJ1.BodyFormat=0<br />
						objMailJ1.MailFormat=0<br />
						objMailJ1.Body=html<br />
						objMailJ1.Send<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://code.netexceed.com/asp/sending-html-based-emails-using-asp/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Insert a row into sql using asp</title>
		<link>http://code.netexceed.com/asp/insert-a-row-into-sql-using-asp/</link>
		<comments>http://code.netexceed.com/asp/insert-a-row-into-sql-using-asp/#comments</comments>
		<pubDate>Fri, 24 Oct 2008 15:17:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[asp]]></category>

		<category><![CDATA[sql]]></category>

		<category><![CDATA[insert into]]></category>

		<guid isPermaLink="false">http://code.netexceed.com/?p=120</guid>
		<description><![CDATA[This shows you how to insert a row in sql using asp. 

strq1 = "INSERT INTO crs_job_listing (job_title, job_category, job_description) VALUES "
strq = strq1 &#038; "('" &#038; job_title &#038; "','" &#038; job_category &#038; "','" &#038; job_description &#038; "')"
cnnConn.Execute strq

]]></description>
			<content:encoded><![CDATA[<p>This shows you how to insert a row in sql using asp. </p>
<p><code><br />
strq1 = "INSERT INTO crs_job_listing (job_title, job_category, job_description) VALUES "<br />
strq = strq1 &#038; "('" &#038; job_title &#038; "','" &#038; job_category &#038; "','" &#038; job_description &#038; "')"<br />
cnnConn.Execute strq<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://code.netexceed.com/asp/insert-a-row-into-sql-using-asp/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Truncate the length of a variable in asp</title>
		<link>http://code.netexceed.com/asp/truncate-the-length-of-a-variable-in-asp/</link>
		<comments>http://code.netexceed.com/asp/truncate-the-length-of-a-variable-in-asp/#comments</comments>
		<pubDate>Fri, 24 Oct 2008 15:16:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[asp]]></category>

		<category><![CDATA[length]]></category>

		<category><![CDATA[truncate]]></category>

		<guid isPermaLink="false">http://code.netexceed.com/?p=118</guid>
		<description><![CDATA[Allows you to truncate the length of a variable in asp especially when displaying. 



]]></description>
			<content:encoded><![CDATA[<p>Allows you to truncate the length of a variable in asp especially when displaying. </p>
<p><code><br />
<%= Left (objGetRequests("vendor_name"), 25) %><br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://code.netexceed.com/asp/truncate-the-length-of-a-variable-in-asp/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Meta refresh code</title>
		<link>http://code.netexceed.com/html/meta-refresh-code/</link>
		<comments>http://code.netexceed.com/html/meta-refresh-code/#comments</comments>
		<pubDate>Fri, 24 Oct 2008 15:13:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[html]]></category>

		<category><![CDATA[meta refresh]]></category>

		<guid isPermaLink="false">http://code.netexceed.com/?p=115</guid>
		<description><![CDATA[This show you how to use a HTML meta refresh tag to refresh to the existing or another page. 

]]></description>
			<content:encoded><![CDATA[<p>This show you how to use a HTML meta refresh tag to refresh to the existing or another page. </p>
<p><code><br />
<META HTTP-EQUIV="Refresh" CONTENT="5; URL=apply.asp?pid=6&#038;tdb_id=<%= tdb_id %>&#8220;><br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://code.netexceed.com/html/meta-refresh-code/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Move a row from one table to another using sql and asp</title>
		<link>http://code.netexceed.com/asp/move-a-row-from-one-table-to-another-using-sql-and-asp/</link>
		<comments>http://code.netexceed.com/asp/move-a-row-from-one-table-to-another-using-sql-and-asp/#comments</comments>
		<pubDate>Fri, 24 Oct 2008 15:12:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[asp]]></category>

		<category><![CDATA[sql]]></category>

		<category><![CDATA[delete]]></category>

		<category><![CDATA[insert into]]></category>

		<guid isPermaLink="false">http://code.netexceed.com/?p=113</guid>
		<description><![CDATA[This code will show you how to move a row from one table to another using ASP. This involves delete and insert into.

strq = "INSERT INTO archive SELECT * FROM user_requests WHERE db_id =" &#038; objGetForm("db_id") &#038; ";"
strq1 = "DELETE FROM user_requests WHERE db_id =" &#038; objGetForm("db_id") &#038; ";"
cnnSimple.Execute strq
cnnSimple.Execute strq1

]]></description>
			<content:encoded><![CDATA[<p>This code will show you how to move a row from one table to another using ASP. This involves delete and insert into.</p>
<p><code><br />
strq = "INSERT INTO archive SELECT * FROM user_requests WHERE db_id =" &#038; objGetForm("db_id") &#038; ";"</p>
<p>strq1 = "DELETE FROM user_requests WHERE db_id =" &#038; objGetForm("db_id") &#038; ";"</p>
<p>cnnSimple.Execute strq<br />
cnnSimple.Execute strq1<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://code.netexceed.com/asp/move-a-row-from-one-table-to-another-using-sql-and-asp/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
