Welcome To Snipplr
Everyone's Recent ASP Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
This function takes a string and deletes the last comma in it.
It is meant for strings with a trailing comma such as "13, 24, 15, "
1
1250
posted 15 years ago by jlvallelonga
asp function similar to php one, to truncate long words inside a string
1
973
posted 15 years ago by ginoplusio
View version with full names here:
[Dropdown-states](http://snipplr.com/view/4042/dropdown-states/ "View full names version")
3
1271
posted 16 years ago by jasonseney
function that return TrueVal if Condition is true else return FalseVal.
0
1059
posted 16 years ago by ginoplusio
similar to php ereg_replace.
You can pass this pattern [^A-Za-z0-9] and "" to remove from string non alphanumerical chars:
s = ereg_replace("[^A-Za-z0-9]","",s)
I use this function to clean input fields...
0
976
posted 16 years ago by ginoplusio
Learn how to create a 301 redirect for domain or home variations to improve your websites' search engine optimization.
2
1261
posted 16 years ago by neal_grosskopf
Llamada a un servicio web desde ASP clásico. <u>xmlSOAP</u> es el SOAP Envelope construido
0
856
posted 16 years ago by sulfurito
Format strings:
* %A - AM or PM
* %a - am or pm
* %m - Month with leading zeroes (01 - 12)
* %n - Month without leading zeroes (1 - 12)
* %F - Month name (January - December)
* %M - Three letter month name (Jan - Dec)
* $d - Da...
0
1329
posted 16 years ago by DaveChild
substitui <ENTER> em quebra de linha.
Break the lines form data, replacing <ENTER> key
0
674
posted 16 years ago by LondonWeb
YouTube offers a method for users and developers to embed video on their web pages. Unfortunately the code that they use doesn't validate. Use this function to make YouTube's embed code validate.
2
1044
posted 16 years ago by neal_grosskopf
Use this function to create a unique class name based on the page's url. It makes for a great way to drill down with specificity in CSS later by placing this on the ID or as a Class on the body tag.
1
930
posted 16 years ago by neal_grosskopf
One thing that always bothered me about Classic ASP is that there isn't an easy way to get the entire url. So I devised a function that will get the full path
including the query string.
2
4550
posted 16 years ago by neal_grosskopf
ASP does not have a built in function to reverse or sort array like other languages. Find out how to do it.
1
1189
posted 16 years ago by neal_grosskopf
I notice that a lot of database driven websites make easy mistakes by not checking for plural words. An example might be "2 vote" or "1 votes". Here is an example of a function using ASP to check for plurals.
1
1041
posted 16 years ago by neal_grosskopf