domain registration
  |   Home   |   Order Hosting   |   Domain Registration   |   Contact Us   |   

Home
Features
Order Hosting
Domain Registration
Resellers
Support
Contact Us
 

The StoKia Network

Free Hosting. No Contracts! No Banners! No Ads!
Discount Premium Web Site Hosting.

What Are Active Server Pages?
ASP Is An Open, Compile Free Application Environment In Which You Can Combine HTML, Scripts, And Reusable ActiveX Server Components To Create Dynamic And Powerful Web Based Business Solutions. Active Server Pages Enables Server Side Scripting For IIS With Native Support For Both VBScript And Jscript.

How Do I Enable ASP For My Web Site?
ASP Support Is Automatically Installed On All Accounts, except "totally free".

Do I Need To Place My ASP Pages In A Specific Directory?
Active Server Pages Can Be Placed Anywhere In Your Web Site.
Active Server Pages Must End With The .asp File Extension.

How Do I Send Mail Directly From A Web Page Or A Form?
There Are Several Ways To Send Mail From An Asp Page. In All Of These Examples, Either The "From:" Field Or The "To:" Field Must Be An Actual Email Account On Your Domain

CDONTS, CDOsys, ASpsmartMail And jMail Are All Installed.

CDONTS Example
<% 
    Set MailObj = Server.CreateObject("CDONTS.NewMail") 
    MailObj.Send "me@mydomain.com", "metoo@mydomain.com", "My Subject", "My Text" 
%>


ASPsmartMail Examples Are Available At www.aspsmart.com

jMail Examples Are Available At www.dimac.net

What Is The Full Path To My Web Root And My FTP Root?
The Full Path To Your FTP Root Folder And Your WWW Root Folder Is Displayed In The Control Panel When You Log On. The Full path To The Directory You Are Working In Can Also Be Found With The Following ASP Code

<% RESPONSE.WRITE SERVER.MAPPATH("/") %>
How Can I Upload Files To My Web Site Through HTTP?
The ASPsmartUpload Component Is Installed To Facilitate File Uploads. Examples For ASPsmartUpload Are Available At www.aspsmart.com

What Version Of Jet Is Running?
Jet Database Version 4.0 Is Running.

How Can I Create A Database Connection, Without Creating A DSN?
Use The Following ASP Code

<%
cst = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" 
cst = cst & "FullPath\mydata.mdb"
set conn = server.createobject("adodb.connection") 
conn.open cst 
%>


How Can I Write A Text File To The Server?
Use The FileSystemObject. This Example Will Create A Text File In Your Web Site.

<%
Dim fso, ts
Const ForWriting = 2
Set fso = CreateObject("Scripting.FileSystemObject")
Set ts = fso.OpenTextFile(server.mappath("test.txt") , ForWriting, True)

' Write a line with a newline character.
ts.WriteLine("Testing 1, 2, 3.")
' Write three newline characters to the file.
ts.WriteBlankLines(3)
' Write a line.
ts.Write ("This is a test.")
ts.Close
%>


How Can I Add A Counter To My Site?
Use The WebCounter Object. This Example Will Create A Text Counter On Your Web Page.

'This Creates The Counter Object
<script runat = server language = vbscript>
function counter()
dim obj
set obj = server.createobject("WebCounter.Counter")
dim iNum
obj.strFileName = server.mappath("\count.txt")
counter = obj.Increment ()
set obj = nothing
end function
</script>

'Place This Code Where You Want The Output
<% response.write "This Page Viewed " & counter() & " Times" %>

If you want to count the number of visits for each individual page, simply assign unique value for the "strFileName" property for each page.


Other Resources
From Microsoft
The ABCs of Active Server Pages
A Brief Overview Of What Active Server Pages Are.

Active Server Pages Tutorial
This Two Part Tutorial Provides A Step By Step Introduction To Several ASP Features. The Tutorial Shows How To Build Sample Applications And Demonstrates Key Concepts You Will Need To Understand When Developing Your Own ASP Pages.

25+ ASP Tips
This article presents tips for optimizing ASP applications and VBScript.

Other Resources

The ASP FAQ
An Excellent Resource With Many Clean, Easy To Follow Examples.

ASP 101
A Nice ASP Resource. Some Of The Database Examples Will Need To Be Changed To Work With Our Servers, Since We Are Running Jet 4.0

 
For feedback and suggestions ....
 
Terms and Conditions Apply for all products and services.
Copyright 2000 - 2006 The StoKia Network All rights reserved.