Welcome To Snipplr
Everyone's Recent ASP Snippets Tagged ASP
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Hello Guys,
This short ASP.NET code snippet is intended to provide you a brief review on how to add SMS functionality to your website. You will see, this is a very simple but smart solution. This ASP.NET application is able to send messages by usi...
0
1009
posted 9 years ago by Gupta86
A function and if statement to detect whether or not the browser is a mobile device.
0
1436
posted 10 years ago by nshakin
Request the current page name relative to the home directory of the server.
0
647
posted 10 years ago by nshakin
This is useful when you need to add logic to static html page.
0
508
posted 13 years ago by Meander365
This script works good condition, and not use "oAuth".
Your should get username and password with cleartext (standart html controls) without authentication and just add them into variables in your code...
(twitter_username and twitter_password)
A...
0
616
posted 13 years ago by emregulcan
Functions to make using regular expressions a bit easier. They're named after the respective PHP function.
2
919
posted 14 years ago by wizard04
Checks if an array has been initialized, even if it is a dynamic array.
1
676
posted 14 years ago by wizard04
Learn how to emulate ASP.NET's AppendFormat method in Classic ASP. AppendFormat is essentially a simple form of concatenation in ASP.NET.
1
698
posted 14 years ago by neal_grosskopf
A quick and easy function that will output table column names and loop through your SQL recordset results outputting it into a HTML table.
2
923
posted 15 years ago by neal_grosskopf
asp function similar to php one, to truncate long words inside a string
1
725
posted 15 years ago by ginoplusio
function that return TrueVal if Condition is true else return FalseVal.
0
744
posted 15 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
735
posted 15 years ago by ginoplusio
Learn how to create a 301 redirect for domain or home variations to improve your websites' search engine optimization.
2
978
posted 15 years ago by neal_grosskopf
substitui <ENTER> em quebra de linha.
Break the lines form data, replacing <ENTER> key
0
504
posted 15 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
771
posted 15 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
693
posted 15 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
3879
posted 15 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
902
posted 15 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
817
posted 15 years ago by neal_grosskopf