Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wp-expand-tabs-free domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/websitedevait/public_html/wp-includes/functions.php on line 6131

Warning: Cannot modify header information - headers already sent by (output started at /home/websitedevait/public_html/wp-includes/functions.php:6131) in /home/websitedevait/public_html/wp-includes/feed-rss2.php on line 8
ASP & ASP.Net Scripts | Advanced Internet Technologies https://website-dev.ait.tools Empowering Your Digital Future with Cutting-Edge Internet Solutions Fri, 21 Jul 2023 18:52:41 +0000 en-US hourly 1 https://wordpress.org/?v=6.9.4 https://website-dev.ait.tools/wp-content/uploads/2022/06/aitlogo-1.png ASP & ASP.Net Scripts | Advanced Internet Technologies https://website-dev.ait.tools 32 32 Do Server Side Includes (SSI) work on AIT’s Web Servers? https://website-dev.ait.tools/blog/do-server-side-includes-ssi-work-on-aits-web-servers-2/ https://website-dev.ait.tools/blog/do-server-side-includes-ssi-work-on-aits-web-servers-2/#respond Fri, 21 Jul 2023 18:52:40 +0000 https://website-dev.ait.tools/?p=214209 Yes, AIT’s Fully Managed Linux and Windows servers can be configured to work with SSI (Server Side Includes). You can use the below HTML code to show the current date on your server if SSI are enabled on your server. By default, files named .shtml on Linux or .asp on Windows will be parsed. These file extensions can be changed based upon the web server configurations.

]]>
https://website-dev.ait.tools/blog/do-server-side-includes-ssi-work-on-aits-web-servers-2/feed/ 0
Do Server Side Includes (SSI) work on AIT’s Web Servers? https://website-dev.ait.tools/blog/do-server-side-includes-ssi-work-on-aits-web-servers/ https://website-dev.ait.tools/blog/do-server-side-includes-ssi-work-on-aits-web-servers/#respond Fri, 21 Jul 2023 18:51:33 +0000 https://website-dev.ait.tools/?p=214206 Yes, AIT’s Fully Managed Linux and Windows servers can be configured to work with SSI (Server Side Includes). You can use the below HTML code to show the current date on your server if SSI are enabled on your server. By default, files named .shtml on Linux or .asp on Windows will be parsed. These file extensions can be changed based upon the web server configurations.

Echo the date in a browser:

<!–#echo var=”DATE_LOCAL” –>

You can modify the date time by doing a timefmt before the the line calling the date.

<!–#config timefmt=” %I %p %Z” –>

%I Hour as decimal number, using a 12-hour clock

%p puts either a.m. or p.m according to the give time value.

%Z Puts time tone, name or abbreviation ie EST

%b Abbreviated month name %B full month name

Include a file:

<!–#include virtual=”/directory/navbar.txt –>

This will include the text of the file in the web page. (Good for things you want on every page.)

Executing CGI or Linux command with SSI:

<!–#exec cmd=”pwd” –>

Puts the present working directory location into the web page.

<!–#exec cgi=”programname.cgi” –>
Runs the program named “programname.cgi”.
<!–#printenv –>

This prints out the environmental variables with their responses.

]]>
https://website-dev.ait.tools/blog/do-server-side-includes-ssi-work-on-aits-web-servers/feed/ 0
What is ASP Fmail or fmail.asp? https://website-dev.ait.tools/blog/what-is-asp-fmail-or-fmail-asp/ https://website-dev.ait.tools/blog/what-is-asp-fmail-or-fmail-asp/#respond Fri, 21 Jul 2023 18:46:05 +0000 https://website-dev.ait.tools/?p=214205 AIT’s Windows servers are setup to use CDOSYS, which is a component used to send email from a server, or you can use ASPEmail.  AIT has provided a script designed to process any forms that you write for your site.  No knowledge of ASP is necessary to implement a working form on your website.

To use fmail.asp, follow the steps below:

  • Click here to get fmail.asp.zip
  • Unzip the archive
  • Edit fmail.asp with the lines of code that are mentioned in the readme.txt file
  • Upload fmail.asp to your Windows 2003 or Windows 2008 server
  • Create a form that includes the HTML code inside the index.html that is inside the zip file.
  • Create a thank you page where your users to be redirected
  • For details on how to setup fmail.asp, follow these instructions:

AIT’s Windows servers are all configured with this feature. Simply add the following  7 lines to your form to activate this feature.

<form action=”fmail.asp” method=”POST”>
<input type=”hidden” name=”_recipients” value=”E-Mail     Address(es) of Recipient(s)”>
<input type=”hidden” name=”_email” value=”E-Mail Address     on Your Windows Server (email@your-domain.com)”>
<input type=”hidden” name=”_subject” value=”Name of Form – Order Form”>
<input type=”hidden” name=”_redirect” value=”//www.your-domain.com/thankyou.htm”>
<input type=”text” name=”reply_email” value=”E-Mail Address of User Submitting the     Form”>
</form>

A web site wouldn’t be complete without some simple method of sending comments  or requesting information. A small form and simple CGI can be designed to facilitate  such a task. The comments form and CGI / ASP source are presented in two sections below.

HTML Source for the Comments Form

The HTML source below represents a simple comments form. This form can be customized  for your Virtual Server by simply changing the occurrences of the email address  (shown in bold) to the address that you would like to use in the form. It may be  necessary to add an e-mail alias or e-mail mailbox if you use an e-mail address  that does not currently exist on your Virtual Server.

<html>
<head>
<title>Send Comments / Request Information</title>
</head>
<body>
<h3>Send Comments / Request Information</h3>
<hr>
<p>
Feel free to send us your comments, suggestions, and/or questions.
We value your input and desire to make these pages as useful as possible.
Please leave an E-mail address so we can reply to you.
</p>
<p>
If your web client supports the “mailto” URL, you can use your
<A HREF=”mailto:email-address@your-domain.com.”>local mail app</a>
to compose and send a mail message. Otherwise, you can use
the form below.
</p>
<p>
For those using browsers that do not support forms such as this,
send mail to: <i>email-address@your-domain.com</i>
</p>
<hr>
<form action=”fmail.asp” method=”POST”>
<input type=”hidden” name=”_recipients” value=”E-Mail     Address(es) of Recipient(s)”>
<input type=”hidden” name=”_email” value=”E-Mail Address     on Your Windows Server (email@your-domain.com)”>
<input type=”hidden” name=”_subject” value=”Name of Form”>
<input type=”hidden” name=”_redirect” value=”//www.your-domain.com/thankyou.htm”>
<p>
<font size=”+1″>Your Full Name:<</font><br>
<input name=”name” type=”text” size=50>
</p>
<p>
<font size=”+1″>Your E-mail address:</font><br>
<input name=”reply_email” type=”text” size=50>
</p>
<p>
<font size=”+1″>Your comments, suggestions, and/or questions:</font><br>
<textarea wrap=physical name=”comments” rows=8 cols=50></textarea>
</p>
<p>
<input type=”submit” value=”Send comments”>
<input type=”reset” value=”Clear”>
</p>
</form>
<hr>
</body>
</html>

The form shown above represents the minimum amount of information that a comments  form should contain – namely “name, recipient, reply to email, subject, and comments”. Other  information can be added to the form above. This information will be sent  to the e-mail address specified by the “_recipients” field. The fmail.asp  script will require that you edit a portion of it. Instructions are provided  within the script.

]]>
https://website-dev.ait.tools/blog/what-is-asp-fmail-or-fmail-asp/feed/ 0
How do I select, add or update data in a database using ASP? https://website-dev.ait.tools/blog/how-do-i-select-add-or-update-data-in-a-database-using-asp/ https://website-dev.ait.tools/blog/how-do-i-select-add-or-update-data-in-a-database-using-asp/#respond Fri, 21 Jul 2023 18:41:48 +0000 https://website-dev.ait.tools/?p=214201 Adding Data to a Database:

Adding data to a Windows-based database using ASP is rather simple with the following code.  Why would you even want to sue a database  Well, here’s why.

  • You design web based forms to gather information for your database.  Really, that’s what this ASP script will do.
  • It can be available to Internal (LAN) and/or External (Web) users.
  • You determine who gets access to which forms.
  • The form captures  information by field users: customers, employees, vendors, & suppliers, etc.
  • The form captures information by field categories: products, services, locations, pricing, dates, etc.
  • Upon users filling out and clicking “SUBMIT” the form information inputs into your database by field name such as Name, Product, Date, etc.
  • The information is then stored in a table in your database by field name such as Name, Product, Date, etc.
  • Using your AIT Power SQL account, you QUERY your database for information based on your specific needs.
  • You retrieve RESULTS based upon your query.
  • You use the results to make intelligent business decisions.

Here’s how it works:

  • Click here to review the add_data.asp.txt script
  • Copy and paste this into a file on your local computer.
  • Rename it to add_data.asp
  • Edit the script appropriately for the design of your database.
  • Upload it to your Windows 2003/2008 Server account.
  • Ensure you have an ODBC connection, with a DSN.

Selecting Data from a Database:

Need a way to display data from a database by paging through the database a certain number of records at a time?  Look no further.  This script will allow you to page through your database without displaying the entire contents of the database, which may be huge.  You can also restrict who can view what data by using this script.

Here’s how it works:

  • First, you will be using another Include file using SSI.  This file is a very commonly used ASP include file named ADOVBS.inc.  This file is downloadable from this tutorial.  To do so, click here.
  • Save this file as adovbs.inc and upload it to your Windows 2000 server.
  • Next, click here to review the display_data.asp.txt script
  • Copy and paste this into a file on your local computer.
  • Rename it to display_data.asp
  • Edit the script appropriately for the design of your database.
  • Upload it to your Windows 2003/2008 Server account
  • Ensure you have an ODBC connection, with a DSN.

Updating Data in a Database:

To modify data inside a MS Access, or MS SQL database, you must use the update SQL statement.  We have found that it is much easier to use a 3 form method to update data.   First, you would select the data to modify based upon a unique identifier.   In this example, we have use the ‘name’ field.  We’re assuming that this field would be unique for all records inside our database.  You may want to use something like SKU, or PartID for your use.  The second page will pull the data for the record that was selected from the first page.  The final page will update the database based upon what changes you made on the second page.

Here’s how it works:

  • First, copy modify1.asp.txtmodify2.asp.txt, and modify3.asp.txt
  • Rename them to modify1.asp, modify2.asp and modify3.asp
  • Edit the script appropriately for the design of your database.  Remember, we have assumed that you will have certain records and database design.
  • Upload it to your Windows 2003/2008 Server account
  • Ensure you have an ODBC connection, with a DSN.
]]>
https://website-dev.ait.tools/blog/how-do-i-select-add-or-update-data-in-a-database-using-asp/feed/ 0
How do I create a javascript form validator? https://website-dev.ait.tools/blog/how-do-i-create-a-javascript-form-validator-2/ https://website-dev.ait.tools/blog/how-do-i-create-a-javascript-form-validator-2/#respond Fri, 21 Jul 2023 18:40:31 +0000 https://website-dev.ait.tools/?p=214200 If you would like the validator script, click here

If you would like to view the sample code, click here

]]>
https://website-dev.ait.tools/blog/how-do-i-create-a-javascript-form-validator-2/feed/ 0
How do I create a time/date script using javascript? https://website-dev.ait.tools/blog/how-do-i-create-a-time-date-script-using-javascript-2/ https://website-dev.ait.tools/blog/how-do-i-create-a-time-date-script-using-javascript-2/#respond Fri, 21 Jul 2023 18:40:07 +0000 https://website-dev.ait.tools/?p=214199 If you would like the scripts, click here to view the page.  This is a javascript that will display time and date in several formats.  You can modify it as necessary to use the time/date format that you wish.  Below is an example of the output.

]]>
https://website-dev.ait.tools/blog/how-do-i-create-a-time-date-script-using-javascript-2/feed/ 0
What is a DLL? https://website-dev.ait.tools/blog/what-is-a-dll/ https://website-dev.ait.tools/blog/what-is-a-dll/#respond Fri, 21 Jul 2023 18:37:28 +0000 https://website-dev.ait.tools/?p=214195 DLL or Dynamic Link Library, is a library of executable functions or data that can be used by a Windows application. Typically, a DLL provides one or more particular functions and a program accesses the functions by creating either a static or dynamic link to the DLL. A static link remains constant during program execution while a dynamic link is created by the program as needed. DLLs can also contain just data. DLL files usually end with the extension .dll,.exe., drv, or .fon.

A DLL can be used by several applications at the same time. Some DLLs are provided with the Windows operating system and available for any Windows application. Other DLLs are written for a particular application and are loaded with the application. With respect to AIT’s Shared Windows hosting solution, AIT will not register (add to the registry) any DLLs. If customers wish to have DLLs registered, AIT recommends one of our Dedicated Hosting platforms that will suit your needs.

]]>
https://website-dev.ait.tools/blog/what-is-a-dll/feed/ 0
How can I force ASP to report errors in Internet Explorer? https://website-dev.ait.tools/blog/how-can-i-force-asp-to-report-errors-in-internet-explorer/ https://website-dev.ait.tools/blog/how-can-i-force-asp-to-report-errors-in-internet-explorer/#respond Fri, 21 Jul 2023 18:36:04 +0000 https://website-dev.ait.tools/?p=214194 In order to allow ASP to report errors in Internet Explorer, the option must be enabled. Go to the Tools menu and select Internet Options. Once there, select the Advanced tab and find the entry for Show Friendly HTTP Error Messages.

Once this option is unchecked, and the changes are applied, ASP errors will show in Internet Explorer, allowing easier debugging of your scripting.

]]>
https://website-dev.ait.tools/blog/how-can-i-force-asp-to-report-errors-in-internet-explorer/feed/ 0
How do I correct the ‘Invalid ProgID’ error when using ASPemail? https://website-dev.ait.tools/blog/how-do-i-correct-the-invalid-progid-error-when-using-aspemail/ https://website-dev.ait.tools/blog/how-do-i-correct-the-invalid-progid-error-when-using-aspemail/#respond Fri, 21 Jul 2023 18:34:25 +0000 https://website-dev.ait.tools/?p=214191 To correct this you will need to verify that the from field in your script has your email address with your domain name in it.  For security reasons, you will not be able to use an external email address such as MSN Hotmail or AOL.

]]>
https://website-dev.ait.tools/blog/how-do-i-correct-the-invalid-progid-error-when-using-aspemail/feed/ 0
Why do I receive the “cannot find installable ISAM” error on my Fully Manged Windows server? https://website-dev.ait.tools/blog/why-do-i-receive-the-cannot-find-installable-isam-error-on-my-fully-manged-windows-server-2/ https://website-dev.ait.tools/blog/why-do-i-receive-the-cannot-find-installable-isam-error-on-my-fully-manged-windows-server-2/#respond Fri, 21 Jul 2023 18:33:44 +0000 https://website-dev.ait.tools/?p=214190 Typically, there are 2 major reasons why you receive this error.

  • The ASP scripting has some sort of loop or incorrect DSN connection statement.
  • Something with the DSN or driver is incorrectly configured.

Here are a few steps that you can go through to debug this error:

  • Please take a look at the ASP script that calls the database. The database call should be using a DSN (Data Source Name). Here is one example of how to connect to a database using a DSN. Confirm that the scripting logic is correct as well.<%set rs=Server.CreateObject(“adodb.Recordset”)connect=”DSN=EXAMPLENAME”sqlstmt = “SELECT * from table WHERE condition=’value’ order by column”rs.open sqlstmt, connect%>
  • Confirm that the DSN is setup by going into the SMT/cpanel as webadmin@yourdomain. Click clicking Additional Services, then Manage, then Manage ODBC DSN. From this interface, you can see which DSNs have been created or add one if you do not currently have one.
  • If these steps have not proven helpful, then you can submit a Trouble Ticket to Customer Service at //order.aitcom.net
]]>
https://website-dev.ait.tools/blog/why-do-i-receive-the-cannot-find-installable-isam-error-on-my-fully-manged-windows-server-2/feed/ 0