|
|
|
|
|
Total Hits: 203 | Today: 0 |
Author: http://www.aspwebpro.com
|
Rating:
|
|

String functions are a great way to manipulate and parse the data within your strings, below are some of the most commonly used ones. For our purposes, we will use this variable as an example:...
|
|
|
|
Total Hits: 69 | Today: 0 |
Author: Todorov
|
Rating:
|
|

The Server.Execute method is a new ASP method, introduced with IIS 5.0 for a first time. You can execute a child ASP page with the Server.Execute and treat the child ASP page as part of the main page. What are the advantages of using Server.Execute, why did Microsoft introduce a new method? The main advantage of using Server.Execute is that you can do a dynamic conditional execution of an ASP pages. For example with the SSI includes you include file like this...
|
|
|
|
Total Hits: 209 | Today: 0 |
Author: Robert Collyer
|
Rating:
|
|

Please report any problems found to me ASAP, so I may fix them and build another release. I get literally hundreds of emails asking how to use these functions, and questions relating to them, etc. If you have any enquiries regarding these scripts, email me, but please allow up to 36 Hours for a response.If you are interested in functions similar to the above but allow interaction with databases, then these will be available soon.I hope you find these functions to be as useful and time-saving as ...
|
|
|
|
Total Hits: 419 | Today: 0 |
Author: aspalliance
|
Rating:
|
|

Common string function in VBScript and JavaScript that will divide a text string into equal portions, left and right....
|
|
|
|
Total Hits: 4125 | Today: 0 |
Author: 4guysfromrolla
|
Rating:
|
|

You can write functions in ASP similar to the way you write them in VisualBASIC. It is good programming practice to use functions to modularize your code and to better provide reuse....
|
|
|
|
Total Hits: 1446 | Today: 0 |
Author: Jared Stauffer
|
Rating:
|
|

To format dates and times you simply need one function: FormatDateTime(). This function is detailed and explained here.......
|
|
|
|
Total Hits: 2702 | Today: 0 |
Author: Robert Collyer
|
Rating:
|
|

This article at Stardeveloper.com provides a set of extremely useful ASP functions, developed by Robert Collyer.All of these functions will come into their own when dealing with multiple page forms.In the Examples given, remember to replace the <$ and $> tags with the proper open/close ASP tags....
|
|
|
|
Total Hits: 251 | Today: 0 |
Author: http://www.aspwebpro.com
|
Rating:
|
|

Time and date functions allow you to customize your web pages in many different ways. Here are some of the most commonly used time and date functions...
|
|
|
|
Total Hits: 187 | Today: 0 |
Author: http://www.aspwebpro.com
|
Rating:
|
|

Math functions allow you to perform a variety of operations on number values in your scripts. Here are some of the most commonly used math functions:...
|
|
|
|
Total Hits: 197 | Today: 0 |
Author: http://www.aspwebpro.com
|
Rating:
|
|

Conversion functions allow you to change the subtype of a variable. VBScript assigns the variant type to all variables as a default, but there are many cases when you might have to convert a variable to a particular type to satisfy an arguement. A common example would be that you might have a string arguement that returns a numeric value or a numeric arguement that returns a string value. Here are some of the most commonly used conversion functions:...
|
|
|
|
Total Hits: 121 | Today: 0 |
Author: Christopher Miller
|
Rating:
|
|

When working with dates (such as using my event calendar article's script), it is often necessary to format it into the Web site's native languages format. For example, instead of mm/dd/yyyy, many languages use dd/mm/yyyy.We can accomplish this by using the Locale ID (LCID) session property. By using this property, we can override the web server's default settings. The usage is below....
|
|
|
|
Total Hits: 230 | Today: 0 |
Author: John Puddifoot
|
Rating:
|
|

Re-usable code is a boon to developers. It's easy to manage, because it only needs to be written once; then, every time you want to do the same thing, you just call it up again. However, it does require a bit of thought and planning up front. John Puddinfoot walks us through several simple applications for re-usable code in ASP, focusing on functions.As with every design decision, the choice to develop re-usable code is a matter of trade-off. Making the decision to develop re-usable code will he...
|
|
|
|
Total Hits: 974 | Today: 0 |
Author: Jared Stauffer
|
Rating:
|
|

Find out how much time occurs between two dates is easy with DateDiff(). This function is useful if you need to find the amount of time between one date and another, or if you need to find out how much time is left until the end of the year....
|
|
|
|
Total Hits: 1632 | Today: 0 |
Author: Jared Stauffer
|
Rating:
|
|

There are five functions that you can call, pass a valid date, and they will return to you the requested part of the date....
|
|
|
|
Total Hits: 824 | Today: 0 |
Author: Arsalan Aslam
|
Rating:
|
|

This script shows how to make an efficient script by storing Function and other required thing in different script. It also shows how to make Subs and Functions....
|
|
|
|
Total Hits: 772 | Today: 0 |
Author: PPSoftNet
|
Rating:
|
|

Many of us have had major problems with dates and databases. They seem to do what they please. I am going to give you a function that will standardise your dates into one format, the function can be used very effectively in conjunction with Microsoft Access....
|
|
|
|
Total Hits: 1140 | Today: 0 |
Author: Antonin Foller
|
Rating:
|
|

DateToHTTPDate and DateFromHTTP functions (source). Enables conversion between OLE datetime (8byte VARIANT-DATE) and http datetime (plain text). Useful for If-Modified-Since and Last-Modified headers....
|
|
|
|
Total Hits: 1314 | Today: 0 |
Author: Steven Smith
|
Rating:
|
|

Frequently when debugging you'll simply want to view the contents of a recordset on an ASP page. For these special moments, I've written a simple function that does this for me and allows me to quickly set a few common parameters. I've even gone so far as to add the function to a COM object to make it more accessible than an include file....
|
|
|
|
Total Hits: 132 | Today: 0 |
Author: Todorov
|
Rating:
|
|

ASP makes converting string to date very easy. We’re going to use the CDate ASP/VBScript function in our ASP code to convert a string to a date value. ASP CDate function has 1 string argument, which is the string to be converted to date. The CDate function converts any valid date/time string expression to Date variant subtype.Consider the following use of ASP CDate function, to convert sDate string to date:...
|
|
|
|
Total Hits: 160 | Today: 0 |
Author: Brett Burridge
|
Rating:
|
|

When you build websites for customers, it's often very difficult to find out the source of errors. Often the difficulties are mostly down to inaccurate error reports. For example, an error of "the page shows an error when I log in to the job search page" is a lot more difficult to fix than "the page shows a Microsoft VBScript runtime error number 500 (Variable is undefined) when I access job_search_login.asp".A possible solution to the problem is to display friendly errors on the page. However, ...
|
|
|
|
|
|
|