'ASP.Net Code' Category

February 27th, 2007

A PHP version of the ASP.Net GridView control

I've always loved the GridView control in ASP.Net. It made data viewing, sorting, paging and editing so easy and mindless.

November 29th, 2006

Determine a visitor's location by their IP address!

Tracking a visitor's geographical location (ie. country, region, city, latitude, longitude, ZIP code, ISP and domain name) used to be a cool trick. Now it is an integral part of many websites, enabling them to identify the locations from where they're getting the maximum traffic; and tune your webpages accordingly. It also enables you to [...]

November 28th, 2006

Convert an IP address to IP number with PHP, ASP, C# and VB.Net

So you've retrieved the visitor's IP address. If you're just logging or tracing it, that's all you need to do. However, if you want to match it to an IP location database, you can't search by the IP in the IPV4 format. It needs to be converted to its IP number equivalent (it is just [...]

November 28th, 2006

How to retrieve a visitor's IP address

Every visitor to your site or web application has an IP address. It is quite handy to be able to get that address. It can be used for security logging, or perhaps tracing. It can also be used to determine where they are in the world, or at least where their ISP is.
The difficulty [...]

October 7th, 2006

How to redirect a webpage in PHP, ASP, .Net, IIS, and .htaccess

If you've moved a domain or page, you need to redirect visitors. To transfer search engine links and ranking, you should use a 301 (HTTP code) redirect. The code "301" is interpreted by browsers and search engines as "moved permanently".
Here's how to implement URL Redirection with several web technologies:
PHP
ASP
ASP .NET
IIS

In Internet Services Manager, right click [...]

Next Page »