﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Knowledgebase » Knowledgebase » Programming » Classic ASP</title><generator>InstantKB.NET 2.0.4</generator><description>Knowledgebase</description><link>http://www.webhost4life.com/HostingKB/</link><webMaster>kb@webhost4life.com</webMaster><lastBuildDate>Fri, 20 Nov 2009 18:02:25 GMT</lastBuildDate><ttl>20</ttl><item><title>Sending Email using SMTP Authentication</title><link>http://www.webhost4life.com/HostingKB/Goto50203.aspx</link><description>&lt;p&gt;&lt;font face="Arial" size="2"&gt;&lt;span class="Highlight"&gt;You need to:&lt;br /&gt;1. use your email server as the smtp, this is usually mail.yourdomain.com&lt;br /&gt;2. authenticate to the smtp server&lt;br /&gt;3. make sure your "From" address is exactly the same as your login address in your code&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Arial" size="2"&gt;&lt;br /&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Arial" size="4"&gt;PHP&lt;/font&gt;&lt;/p&gt;&lt;font face="Arial" size="1"&gt;&lt;font size="2"&gt;Sample php code using ASPEMAIL COM . (aspemail COM  is supported by us) Please refer to &lt;a href="KnowledgebaseArticle50141.aspx"&gt;this article&lt;/a&gt;.&lt;br /&gt;If you like to use PHPMAILER, please refer to &lt;a href="KnowledgebaseArticle50140.aspx"&gt;this article&lt;/a&gt;.&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;p&gt;&lt;font face="Arial" size="4"&gt;C# 1.1&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Arial" size="1"&gt;private void Page_Load(object sender, System.EventArgs e)&lt;br /&gt;{&lt;br /&gt; MailMessage mail = new MailMessage();&lt;br /&gt; mail.To = "&lt;a href="mailto:me@mycompany.com"&gt;me@mycompany.com&lt;/a&gt;";&lt;br /&gt; mail.From = "&lt;a href="mailto:you@yourcompany.com"&gt;you@yourcompany.com&lt;/a&gt;";&lt;br /&gt; mail.Subject = "this is a test email.";&lt;br /&gt; mail.Body = "Some text goes here";&lt;br /&gt; mail.Fields.Add("&lt;a href="http://schemas.microsoft.com/cdo/configuration/smtpauthenticate"&gt;http://schemas.microsoft.com/cdo/configuration/smtpauthenticate&lt;/a&gt;", "1"); //basic authentication&lt;br /&gt; mail.Fields.Add("&lt;a href="http://schemas.microsoft.com/cdo/configuration/sendusername"&gt;http://schemas.microsoft.com/cdo/configuration/sendusername&lt;/a&gt;", "my_username_here"); //set your username here&lt;br /&gt; mail.Fields.Add("&lt;a href="http://schemas.microsoft.com/cdo/configuration/sendpassword"&gt;http://schemas.microsoft.com/cdo/configuration/sendpassword&lt;/a&gt;", "super_secret"); //set your password here&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Arial" size="1"&gt; SmtpMail.SmtpServer = "mail.mycompany.com";  //your real server goes here&lt;br /&gt; SmtpMail.Send( mail );&lt;br /&gt;}&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Arial" size="4"&gt;&lt;br /&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Arial" size="4"&gt;C# 2.0&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Arial" size="1"&gt;static void Authenticate()&lt;br /&gt;{&lt;br /&gt;//create the mail message&lt;br /&gt;MailMessage mail = new MailMessage();&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Arial" size="1"&gt;//set the addresses&lt;br /&gt;mail.From = new MailAddress("&lt;a href="mailto:me@mycompany.com"&gt;me@mycompany.com&lt;/a&gt;");&lt;br /&gt;mail.To.Add("&lt;a href="mailto:you@yourcompany.com"&gt;you@yourcompany.com&lt;/a&gt;");&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Arial" size="1"&gt;//set the content&lt;br /&gt;mail.Subject = "This is an email";&lt;br /&gt;mail.Body = "this is the body content of the email.";&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Arial" size="1"&gt;//send the message&lt;br /&gt;SmtpClient smtp = new SmtpClient("mail.yourdomain.com");&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Arial" size="1"&gt;//to authenticate we set the username and password properites on the SmtpClient&lt;br /&gt;smtp.Credentials = new NetworkCredential("username@yourdomain.com", "secret"); &lt;br /&gt;smtp.Send(mail);&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Arial" size="1"&gt;}&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Arial" size="4"&gt;&lt;br /&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Arial" size="4"&gt;VB.net 1.1&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Arial" size="1"&gt;Private Sub Page_Load(sender As Object, e As System.EventArgs)&lt;br /&gt;   Dim mail As New MailMessage()&lt;br /&gt;   mail.To = "&lt;a href="mailto:me@mycompany.com"&gt;me@mycompany.com&lt;/a&gt;"&lt;br /&gt;   mail.From = "&lt;a href="mailto:you@yourcompany.com"&gt;you@yourcompany.com&lt;/a&gt;"&lt;br /&gt;   mail.Subject = "this is a test email."&lt;br /&gt;   mail.Body = "Some text goes here"&lt;br /&gt;   mail.Fields.Add("&lt;a href="http://schemas.microsoft.com/cdo/configuration/smtpauthenticate"&gt;http://schemas.microsoft.com/cdo/configuration/smtpauthenticate&lt;/a&gt;", "1") 'basic authentication&lt;br /&gt;   mail.Fields.Add("&lt;a href="http://schemas.microsoft.com/cdo/configuration/sendusername"&gt;http://schemas.microsoft.com/cdo/configuration/sendusername&lt;/a&gt;", "my_username_here") 'set your username here&lt;br /&gt;   mail.Fields.Add("&lt;a href="http://schemas.microsoft.com/cdo/configuration/sendpassword"&gt;http://schemas.microsoft.com/cdo/configuration/sendpassword&lt;/a&gt;", "super_secret") 'set your password here&lt;br /&gt;   SmtpMail.SmtpServer = "mail.mycompany.com" 'your real server goes here&lt;br /&gt;   SmtpMail.Send(mail)&lt;br /&gt;End Sub 'Page_Load&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Arial" size="4"&gt;&lt;br /&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Arial" size="4"&gt;VB.net 2.0&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Arial" size="1"&gt;&amp;lt;%@ Import Namespace="System.Net.Mail" %&amp;gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Arial" size="1"&gt;Sub Authenticate()&lt;br /&gt;'create the mail message&lt;br /&gt;Dim mail As New MailMessage()&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Arial" size="1"&gt;'set the addresses&lt;br /&gt;mail.From = New MailAddress("&lt;a href="mailto:me@mycompany.com"&gt;me@mycompany.com&lt;/a&gt;")&lt;br /&gt;mail.To.Add("&lt;a href="mailto:you@yourcompany.com"&gt;you@yourcompany.com&lt;/a&gt;")&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Arial" size="1"&gt;'set the content&lt;br /&gt;mail.Subject = "This is an email"&lt;br /&gt;mail.Body = "this is the body content of the email."&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Arial" size="1"&gt;'send the message&lt;br /&gt;Dim smtp As New SmtpClient("mail.yourdomain.com")&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Arial" size="1"&gt;'to authenticate we set the username and password properites on the SmtpClient&lt;br /&gt;smtp.Credentials = New NetworkCredential("username@yourdomain.com", "secret")&lt;br /&gt;smtp.Send(mail)&lt;br /&gt;End Sub 'Authenticate&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Arial" size="4"&gt;&lt;br /&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Arial" size="4"&gt;ASP&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Arial" size="1"&gt;&lt;font style="background-color: rgb(255, 255, 0);"&gt;&lt;font style="background-color: rgb(255, 255, 255);"&gt; &amp;lt;%&lt;br /&gt; Dim ObjSendMail&lt;br /&gt; Set ObjSendMail = Server.CreateObject("Persits.MailSender")&lt;br /&gt; &lt;br /&gt; ObjSendMail.Host = "mail.somesite.com"&lt;br /&gt; ObjSendMail.From = "someone@somesite.com"&lt;br /&gt; ObjSendMail.FromName = "someone"&lt;br /&gt; ObjSendMail.AddAddress "somebodyelse@somesite.com"&lt;br /&gt; ObjSendMail.Subject = "your subject"&lt;br /&gt; ObjSendMail.Body = "your email body"&lt;br /&gt;  &lt;br /&gt;Our email server requires SMTP Authentication. Replace the username and password below.&lt;br /&gt;ObjSendMail.Username = "SMTPUsername"&lt;br /&gt;ObjSendMail.Password = "SMTPPassword"&lt;br /&gt; &lt;br /&gt; On Error Resume Next&lt;br /&gt; &lt;br /&gt; ObjSendMail.Send&lt;br /&gt; If Err &amp;lt;&gt; 0 Then&lt;br /&gt;    Response.Write "Error encountered: " &amp;amp; Err.Description&lt;br /&gt; End &lt;/font&gt;&lt;/font&gt;&lt;font style="background-color: rgb(255, 255, 255);"&gt;If&lt;br /&gt; &lt;br /&gt; Set ObjSendMail = nothing&lt;br /&gt;%&gt; &lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Arial" size="4"&gt;&lt;font style="background-color: rgb(255, 255, 255);"&gt;&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Arial" size="4"&gt;&lt;font style="background-color: rgb(255, 255, 255);"&gt;Perl&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;font size="2"&gt;Please refer to &lt;a href="KnowledgebaseArticle50120.aspx"&gt;this article&lt;/a&gt;&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;font face="Arial" size="4"&gt;Coldfusion&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Arial" size="1"&gt;&lt;font style="background-color: rgb(255, 255, 0);"&gt;&lt;font style="background-color: rgb(255, 255, 255);"&gt;&amp;lt;Cfmail server="&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font face="Arial" size="1"&gt;&lt;font style="background-color: rgb(255, 255, 0);"&gt;&lt;font style="background-color: rgb(255, 255, 255);"&gt;SMTPUsername&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font face="Arial" size="1"&gt;&lt;font style="background-color: rgb(255, 255, 0);"&gt;&lt;font style="background-color: rgb(255, 255, 255);"&gt;:&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font face="Arial" size="1"&gt;&lt;font style="background-color: rgb(255, 255, 0);"&gt;&lt;font style="background-color: rgb(255, 255, 255);"&gt;SMTPPassword&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font face="Arial" size="1"&gt;&lt;font style="background-color: rgb(255, 255, 0);"&gt;&lt;font style="background-color: rgb(255, 255, 255);"&gt;@mail.&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font face="Arial" size="1"&gt;&lt;font style="background-color: rgb(255, 255, 0);"&gt;&lt;font style="background-color: rgb(255, 255, 255);"&gt;somesite.com"&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font face="Arial" size="1"&gt;&lt;font style="background-color: rgb(255, 255, 0);"&gt;&lt;font style="background-color: rgb(255, 255, 255);"&gt;&lt;br /&gt;             from="&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font face="Arial" size="1"&gt;&lt;font style="background-color: rgb(255, 255, 0);"&gt;&lt;font style="background-color: rgb(255, 255, 255);"&gt;someone@somesite.com&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font face="Arial" size="1"&gt;&lt;font style="background-color: rgb(255, 255, 0);"&gt;&lt;font style="background-color: rgb(255, 255, 255);"&gt;"&lt;br /&gt;             to="&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font face="Arial" size="1"&gt;&lt;font style="background-color: rgb(255, 255, 0);"&gt;&lt;font style="background-color: rgb(255, 255, 255);"&gt;somebodyelse@somesite.com&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font face="Arial" size="1"&gt;&lt;font style="background-color: rgb(255, 255, 0);"&gt;&lt;font style="background-color: rgb(255, 255, 255);"&gt;"&lt;br /&gt;             subject="&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font face="Arial" size="1"&gt;&lt;font style="background-color: rgb(255, 255, 0);"&gt;&lt;font style="background-color: rgb(255, 255, 255);"&gt;your subject&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font face="Arial" size="1"&gt;&lt;font style="background-color: rgb(255, 255, 0);"&gt;&lt;font style="background-color: rgb(255, 255, 255);"&gt;"&gt;&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font face="Arial" size="1"&gt;&lt;font style="background-color: rgb(255, 255, 0);"&gt;&lt;font style="background-color: rgb(255, 255, 255);"&gt;your email body&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font face="Arial" size="1"&gt;&lt;font style="background-color: rgb(255, 255, 0);"&gt;&lt;font style="background-color: rgb(255, 255, 255);"&gt;&lt;br /&gt;&amp;lt;/CFMAIL&gt;&lt;/font&gt;&lt;/font&gt;&lt;font style="background-color: rgb(255, 255, 255);"&gt;&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;br /&gt;&lt;font face="Arial" size="1"&gt;&lt;font style="background-color: rgb(255, 255, 255);" /&gt;&lt;/font&gt;</description><pubDate>Wed, 26 Aug 2009 10:21:57 GMT</pubDate><dc:creator>Tim</dc:creator></item><item><title>Why cannot upload file through my web site?</title><link>http://www.webhost4life.com/HostingKB/Goto50493.aspx</link><description>When upload file through web site, web site user need to have write permission for the folder which used to store file.&lt;br /&gt;Please click &amp;lt;&lt;a href="http://www.webhost4life.com/HostingKB/KnowledgebaseArticle50482.aspx"&gt;here&lt;/a&gt;&gt; for instruction of how to set permission.&lt;br /&gt;&lt;br /&gt;Windows Account :&lt;br /&gt;For ASP.NET application, web user is "Network Service" (for win2003 &amp;amp; win2008) and "ASPNET" (for win2000)&lt;br /&gt;For other applications, web user is "IUSR_memberID"&lt;br /&gt;&lt;br /&gt;Linux Account:&lt;br /&gt;Please change folder permission to 777&lt;br /&gt;&lt;br /&gt;*For security reason, please only grant write permission for the folder(s) which need it.&lt;br /&gt;</description><pubDate>Mon, 29 Jun 2009 05:22:57 GMT</pubDate><dc:creator>Mark</dc:creator></item><item><title>How do I send email using ASP with Jmail</title><link>http://www.webhost4life.com/HostingKB/Goto50462.aspx</link><description>&lt;p&gt;&lt;font face="Arial"&gt;NOTE: This article is for Window Hosting Only.&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;You need to:&lt;br /&gt;1. use your email server as the smtp, this is usually mail.yourdomain.com&lt;br /&gt;2. authenticate to the smtp server&lt;br /&gt;3. make sure your "From" address is exactly the same as your login address in NetworkCredential class&lt;br /&gt;&lt;br /&gt;&lt;font face="Arial"&gt;Sample ASP code using Jmail COM+. (Jmail COM+ is supported by our hosting)&lt;br /&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&amp;lt;%&lt;/p&gt;&lt;p&gt;dim SMTP_user&lt;br /&gt;dim SMTP_password &lt;br /&gt;dim SMTP_server &lt;/p&gt;&lt;p&gt;SMTP_user  = "&lt;strong&gt;youremail@YourDomain.com&lt;/strong&gt;"&lt;br /&gt;SMTP_password  = "&lt;strong&gt;yourEmailPassword&lt;/strong&gt;"&lt;br /&gt;SMTP_server = "&lt;strong&gt;mail.YourDomain.com&lt;/strong&gt;"&lt;/p&gt;&lt;p&gt;dim client_content&lt;br /&gt;&lt;br /&gt;client_content  = "This is the test mail by using Jmail"&lt;/p&gt;&lt;p&gt;&lt;br /&gt;dim mail_to&lt;br /&gt;dim mail_to_subject&lt;br /&gt;dim mail_to_content&lt;/p&gt;&lt;p&gt;mail_to  = SMTP_user&lt;br /&gt;mail_to_subject = "Emailing sample with Jmail via ASP"&lt;br /&gt;mail_to_content = "Content : " + client_content&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;dim myMail &lt;br /&gt;&lt;br /&gt;Set myMail     = Server.CreateObject("Jmail.Message") &lt;br /&gt;myMail.silent    = true &lt;br /&gt;myMail.Logging     = true &lt;br /&gt;myMail.Charset     = "utf-8"&lt;br /&gt;myMail.ContentType    = "text/html"&lt;/p&gt;&lt;p&gt;myMail.MailServerUserName  = SMTP_user          &lt;br /&gt;myMail.MailServerPassword  = SMTP_password       &lt;br /&gt;myMail.From    = SMTP_user     &lt;br /&gt;myMail.FromName   = SMTP_user&lt;br /&gt;myMail.AddRecipient   mail_to        &lt;br /&gt;myMail.Subject    = mail_to_subject&lt;br /&gt;myMail.Body    = mail_to_content&lt;br /&gt;myMail.Send    SMTP_server       &lt;br /&gt;set myMail = nothing&lt;br /&gt;response.write "Sent ok, please check" + mail_to&lt;/p&gt;&lt;p&gt;%&amp;gt;&lt;/p&gt;</description><pubDate>Tue, 19 May 2009 09:52:34 GMT</pubDate><dc:creator>Mark</dc:creator></item><item><title>How to Display Reporting Service Reports without Authentication?</title><link>http://www.webhost4life.com/HostingKB/Goto50181.aspx</link><description>&lt;p align="left"&gt;&lt;font face="Arial" size="2"&gt;The simplest way is to run an asp page that will fetch the report and display it. &lt;/font&gt;&lt;/p&gt;&lt;font face="Arial" size="2"&gt;You can do it with the following example code, just replace the URL with your own reporting url, login and password:&lt;/font&gt;&lt;font face="Arial"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;p align="left"&gt;&lt;font face="Arial"&gt;&lt;span&gt;&lt;p&gt;&lt;font color="#008000"&gt;&lt;span&gt;&lt;p&gt;set objhttp = server.createobject("microsoft.xmlhttp")&lt;br /&gt;url = "http://sqlreport01.mysite4now.com/ReportServer/webho_demo/Report1&amp;amp;rs:Command=Render&amp;amp;rs:Format=HTML4.0&amp;amp;rc:Toolbar=True&amp;amp;rc:JavaScript=False&amp;amp;rc:LinkTarget=_top&amp;amp;rc:Area=Report"&lt;/p&gt;&lt;p&gt;objhttp.open "get", url, false, "login", "password"&lt;/p&gt;&lt;p&gt;objhttp.send&lt;br /&gt;response.write objhttp.responsetext&lt;/p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;p align="left"&gt;&lt;font face="Arial" size="2" /&gt;&lt;/p&gt;</description><pubDate>Mon, 06 Apr 2009 11:03:58 GMT</pubDate><dc:creator>Administrator</dc:creator></item><item><title>What is my physical path?</title><link>http://www.webhost4life.com/HostingKB/Goto50124.aspx</link><description>&lt;font face="MS Sans Serif" size="2"&gt;                    &lt;/font&gt;You can see your physical path by logging into your Hosting Control Panel -&gt; Account. You should see your physical path under "Base Directory:" section&lt;strong&gt;&lt;font face="verdana, arial" size="1"&gt;&lt;br /&gt;&lt;/font&gt;&lt;/strong&gt;</description><pubDate>Thu, 26 Feb 2009 16:59:56 GMT</pubDate><dc:creator>Mark</dc:creator></item><item><title>Why my DSN-less connection cannot locate my ACCESS DB?</title><link>http://www.webhost4life.com/HostingKB/Goto50025.aspx</link><description>&lt;font size="2"&gt;To find the path of your DB, you will have to hardcode the FULL path instead of using a Mappath("mydb.mdb"). &lt;br /&gt;&lt;br /&gt;If you are using &lt;/font&gt;&lt;font size="2"&gt;Dreamweaver, by default it will use relateive path.&lt;br /&gt;&lt;/font&gt;</description><pubDate>Wed, 24 Dec 2008 11:53:53 GMT</pubDate><dc:creator>Mark</dc:creator></item><item><title>Why is my ASP page not working when trying to make changes to MS Access DB?</title><link>http://www.webhost4life.com/HostingKB/Goto50070.aspx</link><description>&lt;font face="Arial" size="1"&gt;                    &lt;font face="Verdana" size="2"&gt;&lt;font face="Arial"&gt;Thishappens when your .MDB file does not have WRITE permissions.  To fixthe problem, go to your Hosting Control Panel, click on the&lt;/font&gt; &lt;font face="Arial"&gt;&lt;strong&gt;File Permission&lt;/strong&gt; icon and assign &lt;strong&gt;Read + Write&lt;/strong&gt; to user IUSR_memberID for the .MDB file.&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;p align="left"&gt;&lt;font face="Arial" size="1"&gt;&lt;strong&gt;&lt;font face="Verdana" size="2"&gt;&lt;font face="Arial"&gt;If this still give you error, you'll have to give write permission to the ENTIRE folder that contains the database file.&lt;/font&gt;&lt;/font&gt;&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;</description><pubDate>Wed, 24 Dec 2008 11:33:13 GMT</pubDate><dc:creator>Mark</dc:creator></item><item><title>Cannot write non english characters to text file via ASP</title><link>http://www.webhost4life.com/HostingKB/Goto50038.aspx</link><description>&lt;font face="Arial"&gt;If you want to write non system default codepage charactors into a text file you need to specify the new text file object to be in unicode format:&lt;br /&gt;&lt;br /&gt;server.createobject(filename, true, true)&lt;/font&gt;</description><pubDate>Wed, 24 Dec 2008 11:19:44 GMT</pubDate><dc:creator>Mark</dc:creator></item><item><title>How to do script redirection?</title><link>http://www.webhost4life.com/HostingKB/Goto50044.aspx</link><description>&lt;p&gt;&lt;font face="Arial"&gt;You can write a Default.asp script to redirect to any URL you want.  Ex: In your script put the following:&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Arial"&gt;&amp;lt;%&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Arial"&gt;response.redirect "&lt;a href="http://www.yahoo.com/"&gt;http://www.yahoo.com&lt;/a&gt;"&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Arial"&gt;%&amp;gt;&lt;/font&gt;&lt;/p&gt;</description><pubDate>Wed, 24 Dec 2008 11:17:45 GMT</pubDate><dc:creator>Mark</dc:creator></item><item><title>MSXML returns msxml3.dll (0x80004005)</title><link>http://www.webhost4life.com/HostingKB/Goto50045.aspx</link><description>&lt;p&gt;&lt;font face="Arial"&gt;When using MSXML2.ServerXMLHTTP, &lt;br /&gt;objSrvHTTP.open&lt;br /&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Arial"&gt;I get error msxml3.dll (0x80004005).&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Arial"&gt;You get this error because the URL that you are trying to call cannot be founded or unreachable.  Please make sure you have the correct URL.&lt;/font&gt;&lt;/p&gt;</description><pubDate>Wed, 24 Dec 2008 11:17:15 GMT</pubDate><dc:creator>Mark</dc:creator></item><item><title>How to display non-English text with ASP and MSSQL server?</title><link>http://www.webhost4life.com/HostingKB/Goto50042.aspx</link><description>&lt;p&gt;&lt;font face="Arial"&gt;As an example, one of the technique for you to display Chinese Big5 character:&lt;br /&gt;&lt;br /&gt;Make every column type that will store Chinese Big5 text to be Unicode support column (such as nvarchar or nchar). &lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Arial"&gt;In your query, put an "N" sign in front of every Chinese Big5 text string.&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Arial"&gt;And in asp page under the &amp;lt;meta&gt; tag, set charset="big5".&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Arial"&gt;Then your asp page should be able to display Chinese Big5 text string.&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Arial"&gt;Note:  This is just one of the techniques to display non-English language.  There are other methods that you can try as well.&lt;/font&gt;&lt;/p&gt;</description><pubDate>Wed, 24 Dec 2008 11:13:13 GMT</pubDate><dc:creator>Mark</dc:creator></item><item><title>My page showing funny characters (%%%) when pulling data from my DB that's in another language</title><link>http://www.webhost4life.com/HostingKB/Goto50053.aspx</link><description>&lt;p&gt;&lt;font face="Arial"&gt;Please make sure you set your codepage in your script, so that ASP will know what language to show when pulling data from database.&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Arial"&gt;&lt;font color="#000099"&gt;Ex:&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Arial"&gt;&lt;font color="#000099"&gt;&amp;lt;&lt;/font&gt;&lt;a href="mailto:%@LANGUAGE="&gt;&lt;font color="#000099"&gt;%@LANGUAGE="VBSCRIPT&lt;/font&gt;&lt;/a&gt;&lt;font color="#000099"&gt;" CODEPAGE="1256"%&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Arial"&gt;&lt;font color="#000099"&gt;1256 is your codepage LCID.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Arial"&gt; &lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Arial"&gt;To find out your locale id  (LCID) , please visit:&lt;br /&gt;&lt;a target="_blank" href="http://www.microsoft.com/globaldev/reference/lcid-all.mspx"&gt;http://www.microsoft.com/globaldev/reference/lcid-all.mspx&lt;/a&gt;&lt;br /&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://" target="_blank"&gt;&lt;br /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Wed, 24 Dec 2008 11:11:17 GMT</pubDate><dc:creator>Mark</dc:creator></item><item><title>Why is my ASP page is not running?</title><link>http://www.webhost4life.com/HostingKB/Goto50059.aspx</link><description>&lt;font face="Verdana" size="2"&gt;All our Windows hosting accounts support ASP.  If your ASP page does not execute, it is because your script is returning errors that you cannot see.  To see the error messages that the script is producing, please do the following steps:&lt;/font&gt;&lt;font face="Arial" size="1"&gt; &lt;/font&gt;&lt;blockquote&gt;&lt;p&gt;&lt;font face="Arial" size="1"&gt;&lt;font face="Verdana" size="2"&gt;Go to Tools -&gt;Internet Options, click the Advanced Tab and go to the category Surfing and &lt;u&gt;UnCheck&lt;/u&gt; the line that says:&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Arial" size="1"&gt;&lt;font face="Verdana" size="2"&gt;show userfriendly HTTP error messages (or something similar)&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;</description><pubDate>Wed, 24 Dec 2008 11:10:01 GMT</pubDate><dc:creator>Mark</dc:creator></item><item><title>Why is my ASP page returning ...must be updateable query.. messages when trying to make changes to MS Access DB?</title><link>http://www.webhost4life.com/HostingKB/Goto50063.aspx</link><description>&lt;font face="Arial"&gt;This happens when your .MDB file does not have WRITE permissions.  To fix the problem, go to your Hosting Control Panel, go to Security, go to File Permission on the left hand menu.  In there, browse to the folder that contains your .mdb file and give the .mdb file &lt;strong&gt;Read + Write&lt;/strong&gt; to user IUSR_MEMBERID for the .MDB file. &lt;/font&gt;&lt;p align="left"&gt;&lt;font face="Arial"&gt;&lt;strong&gt;If this still give you error, you'll have to give write permission to the ENTIRE folder that contains the database .MDB file.&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;</description><pubDate>Wed, 24 Dec 2008 11:09:23 GMT</pubDate><dc:creator>Mark</dc:creator></item><item><title>How do I use MySQL with ASP?</title><link>http://www.webhost4life.com/HostingKB/Goto50043.aspx</link><description>&lt;font face="Arial" size="1"&gt;&lt;font size="2"&gt;                    For a complete tutorial please refer to this site: &lt;a href="http://www.mazsoft.com/mysql.asp"&gt;&lt;font color="#0000ff"&gt;http://www.mazsoft.com/mysql.asp&lt;/font&gt;&lt;/a&gt;                    &lt;/font&gt;&lt;br /&gt;&lt;/font&gt;</description><pubDate>Wed, 24 Dec 2008 11:02:31 GMT</pubDate><dc:creator>Mark</dc:creator></item><item><title>Why is my ASP Global.asa not working?</title><link>http://www.webhost4life.com/HostingKB/Goto50054.aspx</link><description>&lt;p&gt;&lt;font face="Arial"&gt;Please make sure you are NOT using your temporary URL.&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Arial"&gt;Global.asa will work when you are using your actual domain name.&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Arial"&gt;If you must get it to work before switching your domain name to our DNS server, please simply contact support and request them to enable your TEMP URL to be global.asa enabled.&lt;/font&gt;&lt;/p&gt;</description><pubDate>Wed, 24 Dec 2008 10:58:09 GMT</pubDate><dc:creator>Mark</dc:creator></item><item><title>My ASP page is returning HTTP Error 500. How can I see the detailed error messages?</title><link>http://www.webhost4life.com/HostingKB/Goto50048.aspx</link><description>&lt;font face="Arial"&gt;To see the error messages that the script is producing, please do the following steps in browser: &lt;/font&gt;&lt;blockquote&gt;&lt;p&gt;&lt;font face="Arial"&gt;Go to Tools&gt;Internet Options, click the Advanced Tab and go to the category Surfing and uncheck the line that says:&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Arial"&gt;show user friendly HTTP error messages (or something similar)&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;</description><pubDate>Wed, 24 Dec 2008 10:55:46 GMT</pubDate><dc:creator>Mark</dc:creator></item><item><title>ASP Upload returns Persits.Upload.1 error '800a0005'</title><link>http://www.webhost4life.com/HostingKB/Goto50036.aspx</link><description>&lt;font face="Arial" size="2"&gt;Make sure you are uploading to the correct directory using FULL path in your script. &lt;br /&gt;&lt;br /&gt;Then also make sure the folder where you are uploading to have write permission for "IUSR_memberID".  You can do this in your hosting control panel. &lt;/font&gt;</description><pubDate>Wed, 24 Dec 2008 10:33:49 GMT</pubDate><dc:creator>Mark</dc:creator></item></channel></rss>