Posts Tagged ‘.net’

Stored Procedure last modified dates January 26, 2010 No Comments

Useful bit of code, which I’m kinda putting here so I can access it easily. It will display the date created and last modified dates of stored procedures, which can be useful to see when you last made a code change etc! Anyway: SELECT name, create_date, modify_date FROM sys.objects WHERE type = ‘P’ ORDER BY [...]

SQL – Random Row Selection May 11, 2009 No Comments

Just had this problem, but its actually incredibly easy to solve, so thought i’d post an article on here incase anyone else has this problem. It’s quite simple really and there is a couple of examples below for T-SQL and MySQL. I’ve only used the T-SQL one in SQL Server 2005. SELECT TOP X fieldName [...]

Top search queries – Google Webmaster March 31, 2009 No Comments

I’ve had the site up a while now and it’s slowly getting indexed within Google for various search terms, which is quite interesting to see, and it is a good way to see what people are searching for to appear at the site! Google Web Master Tools is a free tool from Google that collates [...]

Website 404 Link Checker / Dead Link Checker March 20, 2009 2 Comments

After doing lots of changes to a website, it’s always good to test your links (if you have made any) to see if they cause a 404 error due to a simple typo. The W3C Link Checker is an invaluable tool for this, as it will crawl / trawl / spider through a fair few [...]

GridViews and Paging – ASP.NET VB.NET March 17, 2009 No Comments

Following on from the post about Sorting, another important aspect of .NET GridViews is the functionality of paging. Paging is effectively creating different pages for your set of results, so you aren’t bombarded with 500 results on one long page. To turn paging on, set the below property of the GridView to TRUE. <asp:gridview allowpaging=”true”> [...]

Sorting and GridViews – VB.NET March 13, 2009 1 Comment

GridViews have a handy option called “Sorting”, which can be set to true or false. Unfortunately, this enables the sorting, but in the default classes there is no code to handle the sort event, so unfortunately you had to add it yourself. It’s not quite as simple as you’d like, as you need to handle [...]

Utilising FileUpload with duplicate file names March 11, 2009 No Comments

Heres a good piece of code which is useful when you are using the FileUpload control to upload files to your web server, but require it to not overwrite the original, but rename it instead by appending a number onto the end. The below code example is in VB.NET for ASP.NET, this could easily be [...]

clickTag and Flash March 7, 2009 No Comments

Recently I’ve been working with Flash and more specifically, clickTag. A rundown of how clickTag works and what it does; clickTag is used as a variable in your, for example, aspx .NET page, which can be handled by the flash file, as long as it is set to accept this variable. Typically this is used [...]

Can you use an aspx page as the img tag src? March 6, 2009 1 Comment

Interesting problem. I required some Ads to show in an email, but unfortunately Outlook is incredibly anal on what it lets the users see (as many of you probably know). The methods I’ve chosen to show the ads is by using Java Script, then if Java Script is turned off, the tags. I need to [...]