Advertisement

Results for "Category: Internet/ Browsers/ HTML"

ASP_Volume3 #44376
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 [email protected], which appears twice in the code).

ASP_Volume3 #44381
Detect if cookies are enabled

When you work with cookies, you always run into paranoid types who disable their cookies. If you don't detect and deal with them, your code may not work. This code detects the user's cookie settings using the ASP Session object. Unlike some other implementations, it requires only one script page.

ASP_Volume3 #44384
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.

ASP_Volume3 #44389
Fix for ASP .NET Web Forms acting 'buggy' after user presses 'back' button

If you do ASP.NET web forms, have you noticed that they seem to act buggy after the user hits the back button? For example, do events start firing off that shouldn't be, or does the state on the form get reset to what the user typed in 2 times ago, or worse? It's not a bug...and here's how to fix it.

ASP_Volume3 #44390
How to send an email in ASP.net

Sending email in ASP.NET is a breeze! Check out this example. Note that docs say that the .SMTPServer property is optional...if you don't specify one, Windows queues up your email for you. However, I haven't tested out this method of sending mail.

ASP_Volume3 #44391
ASP.NET does NOT honor IIS security accounts by default!

When working on a website that was supposed to use the new ASP.NET file upload object (great feature by the way) to upload files and then copy them to a network file server, I discovered that ASP.NET does not honor the security account that you setup in IIS by default! You have to override it to get it to do so. This article explains how and will hopefully save you some time and aggravation of your own.

ASP_Volume3 #44392
SMTP email

One of the bad things about old/classic ASP is its lack of easy built-in support for something as easy as sending an email. Most developers (including myself) ended up having to purchase a seperate email component such as ASPQMail, or SA-Mail. Well, now with ASP.NET that is no longer necessary...it's included in the box and is REALLY simple. Here's how to use it.

ASP_Volume3 #44651
POP3 Email Client

This POP3 Email Client is a bare bone for making your own full-blown POP3 Email Software! This commented code will teach you how to communicate with POP3 email servers from around the world. The functionality of this program include taking in the host name, user name, and password as parameters and connecting to a POP3 server, if the POP3 server contains mail, it will display the first email in the text box, a great start to a C++ email program! This program demostrates a practical usage for Windows Winsock, and it's all coded in memory-saving Windows API, with no usage of MFC! If you like this, please vote for me :)

ASP_Volume3 #44819
The JonShaft Cookie Tutorial

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

ASP_Volume3 #46041
Dynamic Style Sheets. Simpler and Easier

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

ASP_Volume3 #46188
Hangup Internet Connections

Hangup all internet connections... Very simple function... Visual C++ and Borland C++ compatible. Windows 9x, ME, NT, 2000 and XP full compatible...

ASP_Volume3 #46189
Check If TCP or UDP Port is Busy or Not

Check if TCP or UDP port is busy or not... Windows 9x, ME, NT, 2000 and XP compatible. Borland C++ and LCCWin32 compilers tested !

ASP_Volume3 #46810
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 [email protected]

ASP_Volume3 #46811
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 [email protected]

ASP_Volume3 #46863
HTTP Virtual File System

The goal of the present HTTPFS project is to enable access to remote files, directories, and other containers (e.g., structured text documents, OS tables) through an HTTP pipe. HTTPFS system permits retrieval, creation and modification of these resources as if they were regular files and directories on a local filesystem. The remote host can be any UNIX or Win9x/WinNT box that is capable of running a Perl CGI script, and accessible either directly or via a web proxy or a gateway. HTTPFS runs entirely in user space. The current implementation fully supports reading as well as creating, writing, appending, and truncating of files on a remote HTTP host. HTTPFS provides an isolation level for concurrent file access stronger than the one mandated by POSIX file system semantics, closer to that of AFS. Both a programmatic interface with familiar open(), read(), write(), close(), etc. calls, and an interactive interface, via the popular Midnight Commander file browser, are provided. HTTPFS offers a glimpse of one of Plan9's jewels -- a uniform file-centric naming of disparate resources -- but without Plan9. This file system showcases HTTP, which is capable of far more than merely carrying web pages. HTTP can aspire to be the kingpin protocol that glues computing, storage, etc. resources together to form a distributed system -- the role 9P plays in Plan9. HTTPFS articles argue that unlike a popular catch phrase, it is the OS itself that is the browser. The client framework has been tested on GNU/Linux 2.0.36, HP-UX 10.xx, Sun Ultra-2/Solaris 2.6. An HTTPFS server will run on anything that can execute a Perl CGI script -- and this really means anything. The server has been tested on HP-UX B10.xx with a Netscape Server/1.12, Sun/Solaris 2.6 and Linux with an Apache/1.3.x server, and with Microsoft-IIS on WinNT 4.0.

ASP_Volume3 #46867
CHTTPSocket - Direct/ViaProxy - Reusable Class

CHTTPSocket class with full source code, full qualified, one step, HTTP client. Can fetch pages from web, no problems if You try virtual host. If You use proxy server, only set some variables and get it worked also. I also compile sample application which You can download and test.

ASP_Volume3 #46873
POP3 protocol

Welcome to CPop3Connection, a freeware MFC class to support the POP3 protocol. POP3 for those not familiar with all the internet protocols is the protocol used to retrieve internet email. For detailed information about the Post Office Protocol Version 3 you should read RFC 1725. You should also refer to RFC 822 which contains details on the layout of messages. You can find numerous Web Servers which carry these documents by going to www.yahoo.com and look for RFC and 1725 or 822.

ASP_Volume3 #46874
MFC class to support the SMTP protocol

Welcome to CSMTPConnection, a freeware MFC class to support the SMTP protocol. SMTP for those not familiar with all the internet protocols is the protocol used to send internet email. For detailed information about the Simple Mail Transfer Protocol you should read RFC 821, You can find numerous servers which carry these documents by going to www.yahoo.com and look for RFC and 821 and/or 2045. Features Simple and clean C++ interface. The interface provided is synchronous which provides an easier programming model than using asynchronous sockets. The code does not rely on the MFC socket classes. These classes have a number of shortcomings, one of which causes problems when they are used in NT services. The code can be used in a console application without any problems (Again this is not the case for the MFC socket classes). A configurable timeout for the connection can be set through the class API. The classes are fully Unicode compliant and include Unicode built options in the workspace file. As of v1.1, the classes now fully supports file attachments. Full support is included for CC (Carbon Copy) & BCC (Blind Carbon Copy). PJ Naughter at http://indigo.ie/~pjn/index.html

ASP_Volume3 #46875
Class to encapsulate the PING protocol

MFC class to support the PING/ICMP protocol. ICMP for those not familiar with all the internet protocols is the protocol used to retrieve information about how IP packets are routed. Features Simple and clean C++ interface. The interface provided is synchronous which provides an easier programming model than using asynchronous sockets. A configurable timeout for the connection can be set through the class API. The classes are fully Unicode compliant and include Unicode built options in the workspace file. The enclosed zip file contains the CPing source code and a simple test program to exercise all of the functions the classes provide.

ASP_Volume3 #46876
Sending mail using Simple MAPI

CMapi v1.0 an MFC class to encapsulate sending mail using Simple MAPI Welcome to CMapi, 2 simple classes to encapsulate sending mail using Simple MAPI. Simple MAPI is a set of functions exported by MAPI32.dll which allows you to send and receive mail in a transport independent way. It is an optional part of all Win32 operating systems since Windows 95 (excluding Windows CE). MAPI is intended more for the corporate environment when compared with the Internet mail standard SMTP e.g. products such as MS Exchange Server use MAPI extensively. Transport providers are available for a number of messaging transports including Exchange Server, SMTP, Fax, cc:Mail CompuServe etc. To be able to specify different transports, MAPI provides the concept of profiles which are setup using the Mail control panel applet Features Simple and clean C++ interface. All the code is UNICODE compliant and build configurations are provided for this. Even though Simple MAPI only exports an ASCII versions of it's functions, the class internally performs the necessary conversions. The code can be used in a console application or without bringing up any Mapi dialogs if so desired. The code gracefully handles the case where MAPI is not installed on client machines. Internally the class loads the DLL and uses GetProcAddress calls. The enclosed zip file contains the source code and a simple test program to exercise all of the functions the classes provide. PJ Naughter at http://indigo.ie/~pjn/index.html

Languages
Top Categories
Global Discovery