Advertisement

Results for "Category: Internet/ Browsers/ HTML"

2_2002-2004 #128447
How to send email from ASP (Part I of II)

Want to send SMTP email from your ASP app? CDONTS is a free e-mail component that comes with IIS4, that (despite its weird name) is very easy to use and has good performance. The setup actually takes longer than the trivial scripting. To set it up, first, make sure you have installed the SMTP service. It is installed with IIS by default, but if you've messed with your settings, you may ahve to reinstall it. Check that the SMTP service shows up in the services part of the control panel and that the file CDONTS.DLL shows up in your System32 directory. Then using the following code. Don't forget to substitute the email address you want to send to for someaddress@someplace.com, which appears twice in the code).

2_2002-2004 #128449
A better response.redirect

The response.redirect method is great for moving a user from one page to another. However, it does have one major limitation--you can only use it if absolutely nothing has been written to the page. Sometimes, you actually do want to write something to the page and then redirect it, for example when displaying the status of an operation. In this case, the following JavaRedirect function comes in handy. It requires a Java compatible browser. (Note:this script has been changed to incorporate Lewis Moten's helpful suggestions).

2_2002-2004 #128450
Getting the URL the user came from before your web page!

This is a great tip that is NOT documented in the Interdev help..how to get the referring URL of the browser. You can use this to track what traffic you are getting and from where.

2_2002-2004 #128458
The JonShaft Cookie Tutorial

This Cookie tutorial is designed for anyone interested in learning how to control a cookie with ASP.

2_2002-2004 #128516
Dynamic Style Sheets. Simpler and Easier

My head-ache medicine for programming cross-browser webpages.

2_2002-2004 #128525
A Beginner's Guide to HTML Part I: (a brief reference)

You can't get too far in ASP without an intimate knowledge of HTML, so this tutorial will take a newbie through the ABC's of HTML...one step at a time. It's also a great reference for pros who forget how to use little known tags! By pubs@ncsa.uiuc.edu

2_2002-2004 #128526
A Beginner's Guide to HTML Part II: (a brief reference)

You can't get too far in ASP without an intimate knowledge of HTML, so this tutorial will take a newbie through the ABC's of HTML...one step at a time. It's also a great reference for pros who forget how to use little known tags! By pubs@ncsa.uiuc.edu

2_2002-2004 #128531
Form to submit a URL to search engines

Create a form that will submit a URL to the search engines. Submision to 24 search engines is supported. The code includes both a form and a response file. Both may be customized. This first form should be placed in any .asp file. The 2nd file must be save as "submit.asp" in the cgi-bin directory. http://www.submitside.com/script/submit/aspsubmit.html

2_2002-2004 #128535
Generic Email Form Handler using CDONTS

Email any form from your site using CDONTS (IIS's built-in smtp). Just 10 lines of code handles any size form! Email will display message in the form of fieldname: fieldvalue in proper tab order, with line breaks between each name/value pair.

2_2002-2004 #128579
Send Email from ASP with attachment using CDONTS without getting unspeciefied error 80004005

You can send an Email with attachment(s) from your ASP page using CDONTS. There is some code here on planet-source-code, but it does only work on the webserver itself, because the code does NOT first upload the attachment to the WebServer. This is neccesary, because the webserver the ASP is on cannot access your harddrive and pick up the file you want to send as attachment. If you don't, you get "Unspecified Error 80004005" Make sure you have IIS with CDONTS (standard under IIS5) installed and the SMTP virtual server is running on the webserver. The magnificent code to upload a file to a webserver is from Karl P. Grear and can be found on planet-source-code (Form Based File Upload Using Pure ASP).

2_2002-2004 #128580
Browse Favorites

Using the Windows Scripting Host this VBScript retrieves the users favorites folder and loads the url links into an array, then goes to each site for three minutes.

2_2002-2004 #128581
Count How Many Visitors Are On Your Website

This short code keeps track of the number of people currently on your site - just like Dev-Center. Put this in a file called global.asa and upload it to the root web. [http://www.yourdomain.com/global.asa] Use the following in an ASP page to display the number of visitors: or

2_2002-2004 #128585
Hack... er, uh... verify ISP/website security

My purpose for this was educational. I was trying to learn the Scripting.FileSystemObjects which were not documented well at the time. You can use it for educational purposes, or to test the security and see how well your server's NT user permissions are locked down (for instance, if your anonymous user can browse and download files from your WinNt directory (which is usually the case!), your permissions are probably not quite up to snuff)

2_2002-2004 #128586
Random Refresh

This ASP page is randomly refreshed. The refreshing time is from 5 up to 20 seconds. You can use it with displaying a commercial banners.

2_2002-2004 #128592
Simple Search

Search in the site for any word

2_2002-2004 #128593
Send Mail using ActiveX DLL

You can send e-mail whom ever you want from who ever you want, using wich ever server you want This program uses my own control Active X, in the zip you can find the source code.

2_2002-2004 #128594
Controlling the Height of HTML Tables that Contain Forms

When working with HTML forms and ASP the order of the tags CAN and WILL make a difference! This article details some traps that HTML newbies can run into when designing ASP pages.

2_2002-2004 #128595
Writing a COM Object in Visual Basic

This a tutorial I wrote because I had so much trouble learning how to write a COM object, I wanted to put it in simple terms for anyone else who might want to get into it.

2_2002-2004 #128600
PSC Newest Submission Grabber

This Script will go out to planetsourcecode.com and retrieve the newest submissions. It saves the data it got in a text file so we don't get the info every time the page loads. It will get the submissions from ALL Worlds on PSC. After it gathers the data it strips All the HTML from it. Then it will out put the submission in a table for easy display. See Screen Shot for Output. Ive Uploaded it in zip format now for eazy download.

2_2002-2004 #128602
Resize and move browser window after opening

Resize and position the browser window

Languages
Top Categories
Global Discovery