ASP Backup of Access Database
Often we need to do daily backups for client Access Databases. This can be a little irritating to do it every day so we made this little script that allows it to run on the server automatically. There are a couple of components that you would need to run this. Firstly you are going to...
ASP Random String
Often I need to use a random string to query on a database or to reference a record. This code allows you to create a random string that is very very random. <% Dim random_id Set random_id = CreateObject(“Scriptlet.TypeLib”) random_id = mid(random_id.GUID,2,36) %> And to use it you can just do this: <%=random_id%> These are...
WYSIWYG Editor by DMXzone
Which is the best WYSIWYG editor? So we have looked at quite a few DMXzone extensions. We look at them because; firstly they are really good and secondly, we have an interest in extensions for Dreamweaver, and also and this is the important part; Web Developers often ask us how to do things and what...
ASP Years Option Drop Down
If you need to have people sign up that are currently between 14 and 40 it is not really cool to ask them how old are they now as next year they will have changed their age and you don’t want to have to ask them again. So here is an easy way to check...
ASP Generate date between 2 different dates
So, if you need to have 2 different dates made as a drop down, here is the code: <select id=”spk_date” name=”spk_date”> <option selected=”selected” value=”">Select a Date</option> <% for counter = date()+1 to date()+60 %> <option <% ‘ select the current date to display it if counter = date() then %> <% end if %> value=”<%=...
ASP – Find referer Page
There comes times when you need to have a common page that you are going to be using for lots of pages. This could be a page that has country codes or lists of subjects etc. You need to refer people back to the previous page. This could also be a page that people might...
AspJpeg – How to resize a image width
So a fair amount of my clients need to display images on their websites, they want to be able to upload an image of any size and make it fit with the layout of the website without any thinking. So we use AspJpeg. it makes resizing images on the fly easy and doesn’t slow down...
ASP date formats
I had a need to change an US date into yyyy/mm/dd and these date formats really irritate me, so this will work for whatever date you need to go from and to. This is the format. <% = FormatMediumDate(rs(“date”)) %> I would make an include file file for this as it can be applied to...
ASP Copyright
Most of the time when you are developing a website, you develop and then it sits on the internet and certain things get changed, but certain things don’t. In most of my footers on websites there is a copyright notice with a year. To update that each year is a pain, so this will change...
Isapi Rewrite for Beginners
I had a bit of trouble understanding the concepts of Isapi rewrite and once it was figured out. I thought I would share it. I wanted a this: http://www.somesite.com/article/1234 to call the original page http://www.somesite.com/article.asp?id=1234 This would obviously increase the SEO of the webpages as i could have something meaningful as apposed to something that...
ASP Database pathfinder
I often have to take over websites from other developers and need to fix things that don’t work, so one of the first things I need to find is what the paths are. This would be useful for database paths and for aspjpeg, where you need the actual path, so I made this little script...
ASP Time Since
Most of my clients have asked in the past to have a date on the article so that their clients can see when the article was updated. Now since the web is international it doesn’t make sense to say this: Article updated : 03/05/2009 11:56:23 am As Americans would think that this was updated on...
