|
Programically Call a 404 Page Not Found
|
Total Hit (1863) |
You can set the access to the config.web file in the file itself. The <httphandlers> section allows you to specify that access to all .web files will give a 404 error:
|
Rating
|
|
|
|
Delete a Directory
|
Total Hit (1628) |
A code snippet used to delete a directory and all of its contents
|
Rating
|
|
|
Binding SQL Data to a DataGrid
|
Total Hit (1900) |
The DataGrid control supports a DataSource property that takes an IEnumerable or ICollection, as well as a DataSet. You can use a DataSet by assigning the DefaultView property of a table contained in the DataSet to the name of the table you wish to use within the DataSet. The DefaultView property re
....Read More |
Rating
|
|
|
|
Developing a hit counter in ASP.net
|
Total Hit (2529) |
In this example, we will create a web page which will track and display the hit counts for the web site. ASP developers must be familiar with a similar technique used to track the hit counts in classic ASP web pages.
|
Rating
|
|
|
ASP.NET Graphical Page Hit Counter
|
Total Hit (968) |
In this example, we will create a web page which will track and display the hit counts for the web site. ASP developers must be familiar with a similar technique used to track the hit counts in classic ASP web pages.
|
Rating
|
|
|
Creating Images on the Fly with ASP.NET - Introduction
|
Total Hit (1160) |
Before the advent of the .Net framework, creating images on the fly for a web browser was a tedious task. Now, thanks to the .Net framework, creating images on the fly is a simple task. This article will provide the reader with the fundamentals necessary to start developing dynamic images with the .
....Read More |
Rating
|
|
|
Introduction to Web Forms State Management
|
Total Hit (900) |
Due to the nature of the standard transfer protocol ( http ), Web pages are regenerated each time the page is posted to the server ,because of which all information associated with the page, such as the values of controls contained within the page, would be lost with each round trip from the browser
....Read More |
Rating
|
|
|
|
Custom ASP.NET Datagrid Paging With Exact Count - Introduction
|
Total Hit (771) |
Anybody in the DB world knows what paging database results is and its effect. From the time I had started getting into good old classic ASP, I was intrigued with the ability to divide large sets of data into sections of x records per page. One thing that I didn't like about paging is that it seemed
....Read More |
Rating
|
|
|
ASP.NET DataGrid Paging Part 1 - Built-In Paging
|
Total Hit (543) |
The DataGrid server control enables easy paging through data. You can set the DataGrid to use paging and specify a page size (number of records to display). Each time the page is loaded the DataSet is recreated and the DataGrid is bound to the appropriate records based on what page is to be displaye
....Read More |
Rating
|
|
|
|
Mulltiple File Upload - Hotmail Style
|
Total Hit (976) |
Demonstrates how to upload multiple files using one HttpInputFile control - Hotmail style! The Input type=file allows a user to select only one file at a time thereby forcing a developer to use multiple Input type=file on a page.
|
Rating
|
|
|
How Do I...Use Regular Expressions to match a pattern?
|
Total Hit (765) |
Regular Expressions allow for easy parsing and matching of strings to a specific pattern. Using the objects available in the RegularExpressions namespace, it is possible to compare a string against a given pattern, replace a string pattern with another string, or to retrieve only portions of a forma
....Read More |
Rating
|
|
|
How Do I...Get all matches for a pattern
|
Total Hit (838) |
Regular Expressions are often useful when trying to retrieve small portions of text from a large document, result set, or when filtering a stream. The MatchCollection object contains all valid Match objects for a given regular expression after a successful match occurs.
....Read More |
Rating
|
|
|
How Do I...Use Regular Expressions to make replacements?
|
Total Hit (741) |
The Regular Expressions library can often ease the time it takes to generate string replacement functions. By specifying a pattern of strings to be replaced, you do not have to search for every possible variation of a string. Once a Regex object that matches every possible string to be replaced is c
....Read More |
Rating
|
|
|
How Do I...Use common Regular Expressions?
|
Total Hit (744) |
«b»Social Security Number «/b»
\d{3}-\d{2}-\d{4}
«b»US Phone Number«/b»
((\(\d{3}\) ?)|(\d{3}-))?\d{3}-\d{4}
«b»US Postal Code«/b»
\d{5}(-\d{4})?
«b»Internet EMail Address«/b»
[\w-]+@([\w-]+\.)+[\w-]+
«b»Internet URL «/b»
http://([\w-]\.)+[\w-](/[\w- ./?%=]*)?
«b
....Read More |
Rating
|
|
|
|
|
|
|
|
|
Debug an ASP.NET application?
|
Total Hit (927) |
No matter how skilled a programmer you are, you are bound to make mistakes once in a while. Tracking down problems in your code can be baffling without the appropriate tool. Fortunately, the compiled nature of ASP.NET means that debugging Web applications is no different than debugging any other man
....Read More |
Rating
|
|
|
Use MTS Transactions?
|
Total Hit (836) |
A transaction is an operation or set of operations that succeeds or fails as a logical unit. A good example of a transaction is the transfer of funds from one bank account to another. In this case, the funds must be debited from the first account and credited to the second account before the operati
....Read More |
Rating
|
|
|
Working with AdRotator
|
Total Hit (1015) |
The AdRotator control presents ad images that, when clicked, navigate to a new Web location. Each time the page is loaded into the browser, an ad is randomly selected from a predefined list. The following sample illustrates using the AdRotator control.
....Read More |
Rating
|
|
|
Include a calendar on a page?
|
Total Hit (946) |
«LI» Working With Calendar
«LI» Date Selection Modes
«LI» Selection Link Graphics
«LI» Selection Link Text
«LI» Adding Custom Content to Calendar
|
Rating
|
|
|
HtmlInputFile
|
Total Hit (912) |
An HtmlInputFile control handles uploading of binary or text files from a client browser to the server. File-upload works with all HTML 3.2 and later Web clients. Note that the Enctype attribute on the <form> tag must be set to "multipart/form-data".
|
Rating
|
|
|
Handling Errors
|
Total Hit (865) |
«LI» Customizing Error Pages
«LI» Handling Errors Programmatically
«LI» Writing to the Event Log
«LI» Section Summary
|
Rating
|
|