Jack is Here, asp.net findings

As a software engineer, I focus on .NET, especially asp.net, C#, WCF and so on, and I am also very interested in Search Engine Optimization.

Entries Tagged ‘page’

Principles of Quality Web Design

A fine balance of aesthetics and functionality – that’s what a good website should have. Yes it should be both informative and visually interesting – to hold the surfer’s attention. In order to be able to hold a customer it becomes important to maximize both beauty and brains.

Web design is basically the nature of communication, must explain the seller's message – a beautiful website, did not speak, their products or services can not be used, therefore not a long-term function. In fact, a good website is a united whole, combined into an integrated whole visual elements and functionality.

A Web site to attract content and design – design should complement the content and information bridge between users. Graphics, color or otherwise shall be without prejudice to the readability of leading the eye back to the organization or page information.

The website design should also facilitate easy navigation with the main navigation block being placed in a way that makes it clearly visible. Each link should also be provided with a descriptive title for better understanding of the user. Secondary navigation should consist of search fields and outgoing links, which however, should not be dominant features of the page. Also, a good website should have a coherent theme which holds the design together.

The arrangement of words on the web page also matters. The magnetic poetry of words can be graphically represented in components or blocks of the web page. Every web page should ideally have a container, which could be in the form of the body tag of the page, a division tag or a table – the container should contain the contents of the page. The width of the container could be variable in that it could expand to fill the width of the browser window or remain fixed so that the content is of the same width irrespective of the window size.

Identity as a block, ideally a company logo or name, it is important that you block content you need to emphasize the placement at the top of each page of the website. Identity blocks aim is to increase brand awareness. This site also requires a simple navigation system. Preferably navigable item, you will need to be placed near the top of the layout.

The focal point of design should be the main content block. It is only a matter of seconds before a visitor will enter and leave your website. Therefore, more often than not, content should take precedence over everything else on a website. The footer is to be found at the bottom of the page and contains important information pertaining to copyright, contact and legal information. Ideally, the footer should separate the end content from the bottom of the browser giving users the indication that they are at the bottom of the page.

Having white or empty space on the website is equally important as graphics and illustration. White space is what makes a design breathe in that it helps the eye to glide around a page and makes for balance and unity.

A good website should also follow basic rules of the grid. The grid is all about proportions. An ingenious use of the networks always accompanies good graphic design. The concept of division of the elements of a composition in a certain mathematical pattern is as old as the days of Pythagoras. The golden ratio or divine proportion was a pattern that is so often thought of in nature, that given the name of Pythagoras and his school. The application of this divine relationship to the graphic design postulates that are generally compositions divided by lines which are the golden or divine ratio appropriately, are aesthetically superior. In this sense, this divine proportion gives us a logical guidelines for the design of the layouts that are visually appealing.

If we simplify the golden ratio we arrive at the third rule, which says that divides a line that is the golden ratio is halved into two sections one of which is about twice as large as the other. If we divide our layout into thirds, we get a simple grid work in place where we can change the layout of the various elements of the composition. This in turn can lead to a well-structured site anatomy.

Free Pattern Templates for Scrapbooking

Sometimes it's easy to create an album of existing materials. You should consider the time and occasion when patterning standards album. Most stores sell scrapbooking supplies including stickers and die-cut items with a specific theme such as Halloween, Christmas or Thanksgiving.

But what other events such as the first step of a child or a trip to an exotic country? What colors you should consider when structuring templates scrapbook pages? What you need in creating a model view guestbook templates?

Ideas for scrapbook are easily available on the internet, if you have the patience to surf hundreds of thousands of web pages showing themes and pattern templates. Some scrappers choose to go it alone and rely on on their imagination to create their pages.

Cases, select the above methods, it is important to note that you should not do with a few friendsfree pattern templates for scrapbooking pages.

1. Gather all items

Be used by the selection of photographs and other material you can get an idea of how the pages will look like. Some items you may need to be prepared prior to assembly, so it is best to everything at first capture for more companies.

2. Create a layout

If the page has mounted, in order to ensure that all relevant material can bear. Because we need to get a copy of some specific items such as maps and brochures, we will cut it, you can paste into your scrapbook pages.

3. Decide on what colors to use

The colors of the page can come from the colors of the photo, or they could complement the photo to make it stand out. The color wheel is used to create a color-combination. There are several tried and tested combinations that you can use to enhance the page’s design. You can use a combination of blue and orange, for example, to highlight a photo, because these two colors complement each other.

One tip is to put dark colors against white, or light colors against black, for easier visibility.

4. If all else fails, there is always help online

As already mentioned, you can registered online to search for other pattern templates for your scrapbook. There are several Web sites that download free templates for scrapbooking, you just print out and cut.

There are some magazines, you can also buy or read in order to get more ideas on the page description and models.

Optimizing Your Asp.Net Pages for Faster Loading and Better Performance.

If you read the internet and all of the websites dedicated to Asp.Net you will inevitably read about the wonders of the DataGrid, DataList, and Repeater controls. While each of these has its place, if you are only displaying data there is a much faster and more efficient means to do so.

Let’s say you have a page that displays articles based on a query string. Take my article pages for instance. Each article is stored in a database and displayed on the page based on the unique id of the article as stored in the database.

A normal asp page execution procedure goes something like this. The code queries the database on the article ID and then brings back that information to the page where you show it in the fashion that you want. This is a fairly straight forward approach with asp and is done all the time.

So how do we speed up our asp.net pages?

Number 1: Use Asp.Net Caching!

This is a breeze, and I'm not in the details and vibrancy of asp.net caching here because at the time when the letter of this article go 2780000 Google for more. Basically, instead of loading the query the database each time the page, one has only one query of the database and load that into the system cache. Subsequent calls to load the page retrieve the data from the cache to the database that have an immediate and significant performance enhancement compared. You can then use the cache, how long the cache should store and many other features. If you use the cache, you should, if possible!

Number 2: If possible, do NOT use the standard Asp.Net controls.

This is correct. The standard asp.net controls, aimed at rapid development, rather than pages. They allow you to design web pages crawled and display the data very fast, but its actual performance, because additional overhead, which is where the convenience, speed up development time, rather than the page execution speed are affected.

Instead, create either a User Control or even better yet a Web Custom Control which is by far the fastest performance wise and really quite easy to create and use.

Number 3: Use an SqlDataReader or even better yet use a set based command for Sql Server data retrieval and simply execute that one command against the database.

A asp.net SQLDataReader throw is a rapid development of the closure of the only DataReader connection, read the results of the final set. Now, my article pages we have only to return a specific result. In this case, we will choose based on the set command. If you have more than one result returned, in your directory, for example, you can use the SqlDataReader because you have to return multiple result sets.

Set based commands are stored procedures that bring back data through parameters as opposed to a result set which then in turn needs to be looped through to obtain your data. So instead of writing your stored procedure like the following which brings back 1 result set:

Select Title, Body, Author
From Articles
Where ArtID = 215

We can write it using a set based command like this.

Create Procedure mysp_GetArticle

@Title varchar(200) Output,
@Body varchar(8000) Output,
@Author varchar(500) Output

As

Select @Title = Title, @Body = Body, @Author = Author
From Articles
Where ArtID = 215

GO

Since then, the record is returned, it just results in only one set must walk in the query results are just not above three parameters instead of one, the result is returned or the record set called . Because this work it must be possible to avoid the poor performance of two second small process. asp.net caching and combines this approach.

Number 4: Use Classes and ArrayLists as opposed to returning an SqlDataReader.

Create a class and then if there are more than one set of results store those results into individual instantiations of that class. Finally store each of those classes into an ArrayList. You can then store only that ArrayList into the asp.net cache. So instead of getting the results back from a SqlDataReader when loading your page you get them from the ArrayList which is stored in the cache. Nice huh?

Finally… you want to incorporate all of these techniques into your final results which would be performed in the following manner and sequence.

On the first time the page loads, query the database and delivers it to save all your data into separate classes. Then store each class in an ArrayList. If you have only one result you can only save the class in the cache. Then take your ArrayList and store it in the cache.

Next create a Web custom controls and custom controls and data very quickly, HtmlTextWriter to use the loop, pass the cached ArrayList. Load the page, called from class to store the cache for each subsequent call to remember, your one or two classes ArraList.

Certainly, a significant amount of additional coding takes to do it that way, especially if you have a proper error handling into consideration, but when you approach after that your pages be screeching fast, you will immediately notice the difference and your asp. net sites are in the correct order are carried out – data processing in the PageLoad function and the html display in the PageRender function.

Further, you will be glad you did and so will your visitors.

Happy Programming!