|
|
|
|
| Top ASP 101 Stories |
 |
|
|
|
|
|
|
|

|
Persisting Form ViewState in Classic ASP
Persisting form values in classic ASP may be a pain, but sometimes
it needs to be done. Luckily for you, this week we've got a sample
that shows you how.
Loading an Email Body from a File in .NET
This week we're back with an ASP.NET 2.0 version of
the script we published in answer to the question:
"When I'm sending an HTML
formatted email, is there a way to load my HTML from a file so I
don't have to deal with things like double quotes and vbCrLf
characters?"
Loading the Body of an HTML Formatted Email From a File
One of our visitors recently asked "When I'm sending an HTML
formatted email, is there a way to load my HTML from a file so I
don't have to deal with things like double quotes and vbCrLf
characters?"
Setting an Outlook Flag on an Email Message
If you're anything like me, at times you probably get a little
overwhelmed by the amount of email you need to process. To help you
manage your mail, Microsoft Outlook offers you the ability to flag
messages with different status codes... the most common one being
"Follow up". But why should we have to set this flag ourselves?
Split Up Long Tables when Buffering
One of our readers wrote in and wanted to share a comment about how
browsers render long tables and the effect it has when you use
buffering.
Selecting Dates via a Pop-Up Calendar
This visitor submission displays a calendar in a pop up window so a
user can choose a date. Once that date is picked, the calendar
returns that value to the parent form.
Handling HTTP Request Timeouts in ASP.NET
So you're using ASP.NET... no problem. Here's an ASP.NET version
that illustrates how to set timeouts and handle the error that is
thrown when the remote server doesn't respond quickly enough.
Handling HTTP Request Timeout Errors
This script is a version of our HTTP sample which is designed to
have the request time out in order to illustrate how to handle HTTP
timeout errors. It was written to demonstrate how to use the
WinHttpRequest object's SetTimeout method and handle the error it
throws when a timeout expires.
Text File Search ASP.NET Sample Code
This sample uses ASP.NET to seach a text file for a user specified
query phrase. It displays the complete file being searched with the
search phrase highlighted and lists the line numbers on which the
search phrase was found at the bottom.
Text File Search Classic ASP Sample Code
This sample shows you how to search a text file for a phrase.
As currently implemented, it displays the complete file being
searched with the search phrase highlighted and lists the line
numbers on which the search phrase was found at the bottom.
IIS Look Directory List ASP.NET Sample
What if you want to filter or sort the list of files you display to
your visitors, but still make them think they are seeing the files
via IIS's directory browsing feature? This sample script isn't
exactly the same as IIS's built in directory browsing, but it's
pretty darn close.
Barcode Generation ASP.NET Sample
Just like our classic ASP version, the ASP.NET version of this
sample lets you easily generate 1D barcodes that use the Code 39
symbology. Instead of a function, this version is implemented as
a user control to make it even easier to use.
Barcode Generation Classic ASP Sample
This sample shows you one method for easily generating 1D barcodes
that use the Code 39 symbology which handles uppercase letters,
digits, spaces, and a few symbols. It's simple, easy to generate,
and is supported by almost all barcode readers.
Templates Aren't Just for Text Files
I was recently working on a project where the client was moving an
Excel-based worksheet to a web-based application. While they wanted
to put the functionality on the web, they also wanted to keep the
same look and feel as much as possible. After about 5 minutes of
trying to mimic the Excel sheet in HTML, I started thinking that
there had to be a better way.
What Does That Label Control Label?
In ASP.NET 1.x the label control was pretty boring. It basically
placed whatever text it was assigned inside a <span> tag and that
was about it. In ASP.NET 2.0, the label control has been given a
new lease on life with the inclusion of the AssociatedControlID
property.
Progress Bar ASP.NET Sample Code
This sample uses ASP.NET to create a progress bar type of display
for use on a web page. It is implemented as a user control so that
it's extremely simple to use. It includes five different styles
implemented three different ways so you can choose whatever style
you prefer.
Progress Bar Sample Code
Unfortunately, we all know what progress bars are. As annoying as
it is to sit and stare at one, it's better then sitting there
waiting for a program to do something without knowing if it's frozen
or not. While HTTP doesn't offer the same level of interactivity as
a desktop application, there are still instances where a progress
bar type of display can be useful.
IIS Look Directory List Sample
What if you want to filter or sort the list of files you display to
your visitors, but still make them think they are seeing the files
via IIS's directory browsing feature? This sample script isn't
exactly the same as IIS's built in directory browsing, but it's
pretty darn close.
Click to Sort Directory List Sample
Our original Directory List sample simply returned the list of files
in whatever order it found them on the file system. Then we
published our Sorted Directory List sample which allowed the
webmaster to choose how to sort the list of files. This time around
we've taken it one step further. This sample lets your visitors
sort the file list simply by clicking on the corresponding title in
the header. It's very much like our Database Sort sample except
that the data being manipulated comes from the file system instead
of a database.
Microsoft ASP.NET Futures (May 2007) Release
The Microsoft ASP.NET Futures May 2007 ("Futures") release contains
an early developer preview of features currently being considered
for future versions of ASP.NET and the .NET Framework. These
features include Silverlight controls, dynamic languages, AJAX
extensions, and more.
|