Posted on
Apr 10, 2010
under Visual Basic .NET
| 51250 views
This article explains another technique in Web Scraping, which has been an important function of search engine crawling - extraction of all links for any given URL. This is quite a simple procedure, especially when done using Regular Expressions. The HTML content from any given url is downloaded as a string, and all occurences of hyperlinks are extracted from it.
|
Posted on
Mar 30, 2010
under ASP.NET
| 50601 views
A shopping cart application would require to display the products in a multicolumn grid, rather than a straight down list or a table. The each item in a product grid would have a product photo thumbnail, name of the product, price (optional), as well as additional metadata like reviews, ratings, etc. This articles explains how to set up a product grid using ASP.NET ListView control and floating DIVs.
|
Posted on
Mar 29, 2010
under Web Designing
| 45140 views
In the current web designing trend, the tableless web layouts are very popular and widely used. This article explains how to create tableless layouts using DIV elements. The technique very well substitutes the still commonly used layouts using tables and nested tables.
|
Posted on
Mar 15, 2010
under Web Designing
| 33501 views
A favicon (short for favorites icon), also known as a website icon, shortcut icon, url icon, or bookmark icon is a 16×16, 32×32 or 64×64 pixel square icon associated with a particular website or webpage. A web designer can create such an icon and install it into a website (or webpage) by several means, and most graphical web browsers will then make use of it.
|
Posted on
Mar 28, 2010
under C#.NET
| 31952 views
The Haversine formula is used for calculating the distance between two points on the globe. This function gives a nearly accurate distance value, and is used widely in GPS related calculations and for vehicle tracking. This article provides a code snippet for calculating distance between two points taking latitude and longitude values as example.
|
Posted on
Apr 8, 2010
under C#.NET
| 27604 views
Web Scraping or Web Data extraction is a software technique for extracting information from web pages. There are different types of web scraping, and a most common one is the web crawling done by search engines. The text content of the website will be extracted from web pages, and will be indexed for searching. This article explains a simple method of extracting text content using C# and Regular Expressions.
|
Posted on
Apr 2, 2010
under C#.NET
| 24284 views
Uploading of images and resizing (scaling) of them is a very common utility application. Various applications for this function are - Photo thumbnails, profile photos, stock photograph images like Flickr, etc. The System.Drawing namespace provides a built-in thumbnail creation function, but here is a code snippet to resize images preserving its original aspect ratio, maintaining high quality, and limiting the image sizes within prescribed maximum values.
|
Posted on
Apr 17, 2010
under Visual Basic .NET
| 18097 views
A sitemap is a list of pages available on a website. This was used to help visitors to provide an overall navigation of the website, but now sitemaps are mainly used for listing pages and their updates to search engines. Sitemaps are no more in HTML format, but in plain text format or commonly HTML.
|
Posted on
Mar 23, 2010
under C#.NET
| 18062 views
Here is a very useful C# code snippet for generating random strong passwords. There are two code snippets provided here, one for generating a simple random password, and other for generating a strong password. The password is generated using upper case and lower case alphabets, numerals and special characters.
|
Posted on
Mar 17, 2010
under T-SQL Programming
| 17963 views
As you parse the UserAgent string in the server-side VB.NET or C#.NET code, it is possible to parse it using T-SQL programming. This would be extremely useful when your web application is more SQL Server dependant - having most of the business logic as stored procedures and functions. The only difference here is, as in ASP.NET, the UserAgent string is not accessible directly inside T-SQL context, but you need to pass the string from your ASP.NET calling method as a parameter to your stored procedure query.
|