Posted in ASP.NET, C#, tagged ashx, ASP.NET, C#, captcha, Control, generic handler, graphics, image, scrambled, text on April 9, 2009 | 2 Comments »
In this post I will explain how to generate a hard-to-read image out of our Captcha text. The new Captcha with image will look like this:
In MyCaptcha control, each letter is different from other ones in three properties:
1- Font
2- Size
3- Distance from the next letter (character spacing)
Therefore, I wrote a class named Letter [...]
Read Full Post »
In this post and a post after I will explain how to develop a Captcha control and use it in an ASP.NET web site.
As described in Wikipedia, A CAPTCHA or Captcha (IPA: /ˈkæptʃə/) is a type of challenge-response test used in computing to ensure that the response is not generated by a computer. [...]
Read Full Post »
Posted in ADO.NET, C#, WEB DESIGN, tagged ACTIVE, ASP.NET, BAR, CHART, GridView, IIS, LOG, ODBC, REPORT, VISIT, W3C on February 19, 2009 | Leave a Comment »
oops.. today I’d decided to post a new article but surprisingly noticed that the blog was suspended! Thanks to Matt, it is alive and kicking now!
Anyway, lets see how we can generate a log visit report for our ASP.NET web site. By the term of Log Visit, I mean the statistics of a website which [...]
Read Full Post »
Posted in ADO.NET, ASP.NET, C#, SQL SERVER, tagged ASP.NET, bind, Byte, C#, database, DataReader, DB, express, FILE, from, image, ImageUrl, Load, picture, read, Save, SQL, SQL SERVER, stream, System.Drawing, System.Web, System.Web.UI, System.Web.UI.WebControls, to, url, write on October 17, 2008 | 6 Comments »
Hi,
This post will show you how to save/load images to/from a database. This approach lets you do it without having to save the image on to disk. On a real hosting computer, you probably will not have write permissions. Therefore, it is sometimes vital to do image saving/loading on the fly.
In this post we will [...]
Read Full Post »
Posted in ASP.NET, C#, tagged .net, 3.5, ASP.NET, get, httpwebrequest, Linq, Load, post, rest, Save, service, StreamWriter, web, web service, webrequest, xelement, xml on October 10, 2008 | 2 Comments »
At the time of writing this post, .NET has no specific facility to work with REST services. Though, some services over the web provide information in REST format. For example, http://www.geonames.org (that provides gegraphic information) has a lot of free web services to get geographical information. The other day, I needed to use these services [...]
Read Full Post »
Posted in ASP.NET, C#, SQL SERVER, tagged ADO.NET, AppDomain, ASP.NET, C#, CurrentDomain, DataContext, Delete, GetAssemblies, GetCustomAttributes, GetExecutingAssembly, GetProperties, GetTable, GetTypes, Insert, Linq, LinqDataSource, name, PropertyInfo, record, Reflection, Retreive, Select, SQL, String, table, TableCellGetValue, Update, using on September 27, 2008 | Leave a Comment »
Hi,
With Insert, Update and Delete methods but without a Select method, LinqDataSource control looks just like a chair with only three legs! Such a powerful and flexible control is used to get connected to a DataBound control like GridView, while it could excel in many scenarios if it had a Select method! For example, it [...]
Read Full Post »
Posted in ADO.NET, ASP.NET, Architecture, C#, tagged 3-TIER, 3Tier, ADO.NET, APPLY, Architecture, ASP.NET, ATTRIBUTE, BUSINESS, BUSINESS CHECK, COMPLETE, CUSTOM, DATA ACCESS, grid view, IMPLEMENT, LAYER, LAYERED, maximumRowCount, N-TIER, NTier, object data source, ObjectDataSource, presentation, startRowIndex, SYSTEM, TRANSACTION, TRANSACTION SCOPE, UI on July 22, 2008 | 3 Comments »
Hi back,
In this post we will finalize the implementation of our 3-tier asp.net architecture, by developing a Web-based presentation layer.
So far, we have developed the data access and business layers. The implementation of UI, consists of methods and approaches for handling business and crud operations thorough a Web UI. In fact, there are several ways [...]
Read Full Post »
Posted in ADO.NET, ASP.NET, Architecture, C#, tagged 3-TIER, 3Tier, ADO.NET, APPLY, Architecture, ASP.NET, ATTRIBUTE, BUSINESS, BUSINESS CHECK, COMPLETE, CUSTOM, DATA ACCESS, IMPLEMENT, LAYER, LAYERED, N-TIER, NTier, SYSTEM, TRANSACTION, TRANSACTION SCOPE on July 18, 2008 | 2 Comments »
Up to now, we have finished implementing the data access layer. However, we can reduce the dependency between the deriver DAL classes and Web.config file. As you remember, we have specified the DB provider name in Web.config file so that DAL classes must have access to this file to read the provider name. Another method [...]
Read Full Post »
Posted in ADO.NET, ASP.NET, Architecture, C#, SQL SERVER, tagged 3-TIER, 3Tier, ADO.NET, Architecture, ASP.NET, C#, FirstReturnedRecord, IDENTITY, N-TIER, NTier, PAGING, ROW_NUMBER, SCOPE_IDENTITY, SQL SERVER, SQL SERVER 2005, StoredProcedure, TIER, UpdateRowSource on July 15, 2008 | Leave a Comment »
The Fill method we have developed so far, executes the Select command on the underlaying server and picks up RowCount records from startRowIndex position. For example, if Select * from Person returnS 20 rows, and startRowIndex is 0, only the first RowCount records will be fetched. This means that the complete result set will be [...]
Read Full Post »