Articles
DevASP - ASP and XML Articles, Samples, Toturials, Sample Chapters and resources for Developers Thursday, February 09, 2012
Home
Articles & Samples
Dev Search
Sample Chapters
Link to US
Contact
Search Directory
Applications
Articles & Samples
Components
Community
Database
Developer Sites
Downloads
Hosting Services
Introduction
Knowledge Base
Sample Chapters
WebCasts
ASP Directory
Applications
Articles & Samples
Components
Developer Sites
Knowledge Base
Sample Chapters
WebCasts
XML Directory
Applications
Articles & Samples
Developer Sites
Error, Bugs & Fixes
Downloads
Introduction
Knowledge Base
Sample Chapters
WebCasts

FREE 12 month online training for ASP.NET & MS Expression Studio and a Free copy of MS Expression Web with Windows Server Purchase

Home > Search > Articles & Samples > ASP > Tips & Tricks
Search
DevASP

What's New
What's Hot

Where Do They Come From?       
Total Hits: 97  |  Today: 0 Author: Jason Withrow       Rating:  
Read Reviews | Write Review |              Your Rating: 

Ever wonder where your visitors are coming from? Here is a simple example of how you can find out, by logging all of your visitors stats.

First we need a database. I am using Access for my example but you may use any standard ODBC compliant RDBMS you like.

Create a New Database and name it siteLog, then create a new table inside of it named tblSession. Use the screenshot below as a reference....

Some Simple Tips To Help Prevent Security Breaches       
Total Hits: 351  |  Today: 0 Author: mailravikanth75@yahoo.com       Rating:  
Read Reviews | Write Review |              Your Rating: 

Today more and more corporates are adopting Internet as a model of doing business and communicating with there clients, on one hand Internet has brought transparency and convenience it has also raised serious questions relating to security and privacy.

My five years in the software field has taught me that there is nothing like 100% software security and its a myth, I had seen people hacking into network systems by changing registry entries, control networks using TCP/IP based utilities, ...

How do I generate a treeview from ASP?       
Total Hits: 59  |  Today: 0 Author: classicasp.aspfaq.com       Rating:  
Read Reviews | Write Review |              Your Rating: 

We created this example of traversing the folder structure of a web site or virtual directory. Before you even look at it, there are a few notable limitations. The most important is that, rather than create a recursive function, we limited the scope to nesting two levels deep — both for the purposes of the example and to keep the code relatively short. We also assume that the starting point (defined by vDir) has at least one subfolder *or* one file. Finally, the majority of the formatting functi...

How do I embed ASP delimiters (<% or %>) in a string?       
Total Hits: 57  |  Today: 0 Author: classicasp.aspfaq.com       Rating:  
Read Reviews | Write Review |              Your Rating: 

This is because the ASP engine tries to parse all the %% blocks first, and ...width=100% looks like the end of an ASP block (which of course isn't the case). There are several ways to work around this; for example, you can use valid HTML by enclosing the width attribute's value in quotes, you can leave a space after the percent sign, you can organize your element tag in a different order, or you can escape the sequence using a backslash....

How do I disable the back/forward buttons?       
Total Hits: 57  |  Today: 0 Author: classicasp.aspfaq.com       Rating:  
Read Reviews | Write Review |              Your Rating: 

Short of opening a new window without a toolbar, you can't. Even then, people can use Backspace or Alt+left. Instead of trying to disable the features of a browser, you should strive to build your application so that disabling those features is not necessary. For example, if your application inserts a row into a table, and you're afraid that if the user clicks back it will insert another one, there are several things you can do (see Article #2509)....

How do I create a database from ASP?       
Total Hits: 80  |  Today: 0 Author: classicasp.aspfaq.com       Rating:  
Read Reviews | Write Review |              Your Rating: 

Now, if you have user-defined objects that you'd like automatically created every time you create a new database, put them in the model database. This database is used as a template for new databases....

How do I control access to an area?       
Total Hits: 70  |  Today: 0 Author: classicasp.aspfaq.com       Rating:  
Read Reviews | Write Review |              Your Rating: 

If you want to roll your own permissions, then creating a login for a section of your web site is fairly easy. First, create a login form (loginForm.asp):...

How do I change the default server scripting language in InterDev?       
Total Hits: 53  |  Today: 0 Author: classicasp.aspfaq.com       Rating:  
Read Reviews | Write Review |              Your Rating: 

In Visual InterDev 1.0, choose Options from the Tools menu, and then select the HTML tab. In the Default scripting language area under Active Server Pages, select a language.

In Visual InterDev 6.0, right-click the name of the project in the Project Explorer, and then choose Properties. Choose the Editor Defaults tab, and then under Default script language, select a new default.

In Visual InterDev.NET, there are two methods (though neither work for me yet):

(a) with an...

How to add click event for dynamically generated button       
Total Hits: 190  |  Today: 0 Author: PHANI HARSHITHA MADALA       Rating:  
Read Reviews | Write Review |              Your Rating: 

In this article iam going to discuss about adding onclick

event to a dynamically generated button.See the code below...

How to Randomize Practically Anything       
Total Hits: 161  |  Today: 0 Author: John Peterson       Rating:  
Read Reviews | Write Review |              Your Rating: 

Last week someone asked me how to display some links in a random sequence. The links were always the same, but the order they were to be shown in couldn't always be the same. Sure it sounds easy enough, but was it really?...

How to Share Session/Application State Across Different ASP.NET Web Applications       
Total Hits: 335  |  Today: 0 Author: Jayram Tallamraju       Rating:  
Read Reviews | Write Review |              Your Rating: 

This article gives the details of how to share single Application/Session state across different ASP.NET web application projects developed. This is required for web applications developed separately for the sake of modularity and require integration into a single website at a later stage. It is better to develop each module independent of other. If there is information that needs to be shared across modules, it can be achieved through database and/or Session/Application variables, depending on ...

How to Access the Network using ASP.NET       
Total Hits: 109  |  Today: 0 Author: Eng. Samer Nazzal       Rating:  
Read Reviews | Write Review |              Your Rating: 

As a web developer you need to grab the HTML content of the Web page. The WebResponse and WebRequest Abstract classes, that provided by the .NET Framework, can be used for accessing information over the Network (Internet). Instances for the WebRequest and WebResponse classes must be created via the WebRequest class and the GetResponse() method of the WebRequest class....

How do I change document names / extensions in IIS / PWS?       
Total Hits: 57  |  Today: 0 Author: classicasp.aspfaq.com       Rating:  
Read Reviews | Write Review |              Your Rating: 

Open up Internet Services Manager. In IIS / PWS 4.0, this is on the Start Menu under Windows NT 4.0 Option Pack / Internet Services Manager. In IIS 5.0 / Windows 2000, this is under Administrative Tools in the control panel. (I have a shortcut to this tool on my taskbar; if you do a lot of work in the MMC tool for IIS, you may want to do the same.)...

How can I stop Photoshop from opening ASP files?       
Total Hits: 52  |  Today: 0 Author: classicasp.aspfaq.com       Rating:  
Read Reviews | Write Review |              Your Rating: 

This can occur if you install Photoshop AFTER applications such as Visual Studio, DreamWeaver, or FrontPage. When setting up a new system, do yourself a favor, and be sure to install Photoshop prior to any ASP editors....

How to return value from the popup window?       
Total Hits: 82  |  Today: 0 Author: Brainstorming Guy       Rating:  
Read Reviews | Write Review |              Your Rating: 

One more tutorial for the beginners. In this tutorial, we are going to see how we can return a value from the popup window to the main window.
We are going to use 2 pages. Webform1.aspx and Webform2.aspx with their corresponding code behind file.
This is a simple method on how you can return a value to the parent window from the popup window....

User Tips: Reading an MP3s ID3 Tag through an ASP Page       
Total Hits: 242  |  Today: 0 Author: Dave W.       Rating:  
Read Reviews | Write Review |              Your Rating: 

Hi! I absolutely love your site, It helped me greatly when I was learning ASP, now actually being employed in the industry I thought I would share a script I just whipped up. The script pulls the ID3 tag v1.0 from an MP3 file. (I tried to find one on the net, but, alas, could not find one, so I wrote my own!) I've not extensively tested the script, however it appears to work on my MP3 files!...

URLDecode Function       
Total Hits: 955  |  Today: 0 Author: Bruce Johnson       Rating:  
Read Reviews | Write Review |              Your Rating: 

A function that converts a URL-Encoded string into its plaintext equivalent...

Keyword highlighting in ASP       
Total Hits: 1014  |  Today: 0       Rating:  
Read Reviews | Write Review |              Your Rating: 

A simple function to highlight keywords in ASP....

Implementing the .netTiers Template Library as a .NET Website's Data Layer - Part II       
Total Hits: 682  |  Today: 0 Author: Dina Fleet Berry       Rating:  
Read Reviews | Write Review |              Your Rating: 

This is the second article in the .netTiers series. The first article included getting started with the template settings, generating the libraries, a first look at the admin site, a page selecting data out of the database and a page inserting data into the database. This article will include .netTiers discovery of custom stored procedures, SourceTable configuration, and adding custom code to the .netTiers library....

ASP Techniques for Webmasters       
Total Hits: 353  |  Today: 0 Author: www.asp101.com       Rating:  
Read Reviews | Write Review |              Your Rating: 

This manuscript is an abridged version of a chapter from the Wrox Press book Professional ASP Techniques for Webmasters. It discusses how ASP can be used in conjunction with various other techniques to provide feedback about your site, and to prevent errors....


DevASP - Privacy - Disclaimer
Copyright © 2008 DevASP.com