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 for January, 2010

How To Create An HTML Image Background For Your Webpage

The easiest way to an HTML image background for your web pages with the help of everyday images, Photoshop's Slice tool, a table and repeating background image html code. The nice thing about this kind of design that you do not need, CSS, and extends it with the length of your website.

High Level Process

  • Find and fix images to use for header, content holder and footer
  • Open a new document in Photoshop the width of your web site.
  • Drag the images onto the template and position them so that the finished template resembles a web page (header at top, content area in middle surrounded by a border and footer at bottom)
  • Add a background color if desired
  • Slice the template into 3 sections
  • Save each section as a gif image and upload as usual
  • Build a 3-row table in the body section of your HTML document to hold each of the 3 gif images. Top row holds top gif image, middle row holds middle gif image and bottom row holds bottom gif image
  • Use repeating HTML code in the middle row so that the HTML image background expands vertically with the length of the page

Finding the Images

If you do not have images that are suitable for this purpose, search photo websites like IStockPhoto.

For the header and footer images, there are several combinations that will work, but if you want to keep it simple, use the same image(s) along the top that you use along the bottom.

An image can be copied and pasted several times, to fit the entire width of your template. A picture of the formation of wood, for example, can serve as a headline across the top and can turn be used along the bottom.

For the content holder, there are also several options. You can simply use a colored rectangle and add a shadow to it or you can use something like a picture frame to get a more ornate looking content holder.

Creating The Template For Your HTML Image Background

The template that you create in Photoshop is fully functional on it’s own. All you have to do is add content to the middle section of the table.

NOTE: If you use a cascading stylesheet (CSS) on the same web page, it will interfere with the effectiveness of the template. In some cases your middle gif will repeat horizontally instead of vertically.

As an example, the width of 950 pixels to create the document in white (which is) 600 pixels and a height (the height of your important and tell a Web page is not wide, so choose something, anything for you can see the size of the Photoshop).

Before dragging your images onto the template, you may have to fiddle with them so that they match the width of your template. For example, if you choose an image of wood moulding that is only 250 pixels wide, you will need to duplicate the layer repeatedly and position them side by side to get a longer piece of moulding that is 950 pixels wide.

Sometimes, when you copy and paste this side of the layer, the seams will be visible. Using the Smudge Tool blend seams, and then select the layer mosaic layer, so that you can easily drag the location of templates and access to its complete image.

If you want to use this exact image along the bottom, duplicate the layer and move it to the bottom. If you want to flip it, choose Edit-Transform-Rotate.

After preparing the content holder image (the picture frame in the example above), drag it onto the template positioning it between the header and the footer and then use Edit-Transform-Scale to stretch it to size.

Add Header Text (Website Name…) and Footer Text (Copyright…).

If you want to select it, use the Custom Shape tool and small pictures to add interest to your template. The spiral shape is a favorite. Use Edit-Transform, and scale or rotate either easy to size and position.

Find a complementary color in your images by using the Eyedropper Tool then fill the white space on either side of the content holder using the Paint Bucket Tool.

Use Slice Tool to Divide Template into 3 Images

Cut into three smaller image file level. Grab from the Tools panel Photoshop slice tool. In the top toolbar, set the style for the "fixed size" in order to ensure an accurate ratio. The use of 950px X 600px, for example, enter the width and height are as follows:

  • Top slice equals 950px X 250px
  • Middle slice equals 950px X 100px
  • Bottom slice equals 950px X 250px

CAUTION: Make sure that your top and bottom slices are large enough to completely contain the header and footer respectively.

Now you have a document sliced horizontally into 3 smaller pictures. The next step is to "Save for Web

Create a table in the body section of your HTML document to hold the background image url for each gif and your content.

  • The first row in your table contains the top gif
  • The middle row contains your middle gif, the repeating HTML code and the content
  • The last row in your table contains the bottom gif

These 3 gif images when displayed on a page will result in a one-of-a-kind, professional looking HTML image background, perfect for a simple web page or sales letter. The possibilities are only limited by your creativity.

How To Create A Web Page Shadow Using Photoshop Slice Tool and HTML Coding

For an easy-to-implement web page effect, add a Web Page Shadow all the way around your webpages using the Photoshop Slice Tool and HTML coding. Doing so not only adds visual interest but also gives your website a professional look. Read these step by step instructions or watch a video tutorial and follow along with a PDF supplement.

High Level Process:

  • Create 2 blank documents in Photoshop, one smaller than the other
  • On the smaller one, add a Photoshop drop shadow all the way around image
  • Drag the smaller document on top of the larger one to create one flattened image
  • Use the Photoshop Slice Tool to slice the image into 3 smaller images and upload as 3 separate gifs
  • Create a table in your HTML document within the body to hold gifs and content

Step By Step:

  • Create the larger of two documents in Photoshop (or another image editor). Width is the same as your website template (ex. 950 pixels). Height does not matter but should be big enough to easily use Photoshop Slice Tool (ex. 250 pixels). Color should be the same as your website body.
  • Create the smaller of two documents in Photoshop. Width should be smaller than the larger document (ex. 800 pixels). Height should be smaller than the larger document (ex. 100 pixels). Color should be the same as your content area.
  • Add a Photoshop Drop Shadow to the smaller document.
    • In the Layers Palette, double click on the word “Background” and change it to any other name. This will free up functionality and allow you to easily add a drop shadow.
    • Open the Layers Style dialog box, click on “Drop Shadow” and set the variables as follows:
      • Opacity 75%
      • Angle -90 degrees
      • Distance 0 px
      • Spread 35%
      • Size 35 px
      • Color #7B7979 (gray shadow)
  • Drag the smaller document on top of the larger document to create one image. Using the examples above, this image will be 950 pixels wide by 250 pixels high with the smaller, shadowed image embedded on top of it.
  • Slice the document into 3 smaller images horizontally.
    • Grab the Photoshop Slice Tool from the Tool Palette. In the top toolbar, set the Style to “Fixed Size” to ensure exact proportions. Using the 950px X 250px example, input width and height as follows:
      • Top slice equals 950px X 100px
      • Middle slice equals 950px X 50px
      • Bottom slice equals 950px X 100px
  • <!–Tags: , , , , , , , , ,

How to Create a Data Source in Visual Studio.net

Welcome, in this tutorial we are going to create a new data source in Visual Studio.Net using the built in wizards and drag-n-drop. To begin go to “File”, “New”, “Project” and name the project something like “MyPubsDataSource” or whatever makes sense to you. This will be a windows application although it’s not really important because we just need any type of project because creating a new data source is commom to all project types. Ok after you enter a name for your project and press the “Ok” button VS.Net will have created your first form for you named “Form1.cs”. At this point the form1 view should be already in design view(If you see a rectangular window that reads “Form1.cs[Design]* then you are in design view.
Ok next click once anywhere on the form and then select the “ToolBox” tab on the left of the design window. If it’s not viewable then select “View”, “ToolBox” from the main menu.(See image below)

[Click to see full-size]

Which will show you the window below.

[Click to see full-size]

Ok, next select the “SQLDataAdapter” from the ToolBox and drop it anywhere onto your form. Once you release it, it does not actually sit on top your form but instead it positions itself just below your form inside the design area. At this point you will have another window in front of you for you to choose your data source like this(See image below).

[Click to see full-size]

In the next window, select Microsoft SQL Server or Microsoft SQL Server 2005 Express or whatever data your server can be. The next thing to do is enter the server name if you know what this is, if not click the drop arrow and select from the list of providers. (See picture below).

[Click to see full-size]

Next, if your server is setup for it then you can choose “Windows Authentication” if not and you know what your SQL Server login settings are then enter the user name and password. Now you want to test your settings and make sure you can connect to your server so click on the “Test Connection” button now. Next you will get a message box showing the connection status of the test. If it’s ok press the “OK” button and the form will close and you will be back at the Data Adapter Configuration Wizard. Select either “Yes or No” to save the password for your connection in the App.config file. (Please note if you select “No” you will be promted for it each time you run any of your applications that need to connect to SQL server for data). I normally select “Yes” as I setup a login on SQl Server with only enough rights to handle the data I’m working with.
Ok, now click “Next” to advance to the next screen of the wizard. Here you can use sql statements, use existing stored procedures, or create new stored procedures. For now select “Use SQL Statements” and press the “Next” button.(See image below)

[Click to see full-size]

The next window you will see will be this one.

[Click to see full-size]

Select the “Sales” table and press the “Add” button and then the “Close” button.

The following window will appear below.

[Click to see full-size]

Select the (All Columns) square to place a tic mark and then press the “OK” button to save and close the window. You are once again back at the wizard and now you will see this code in the center.

SELECT sales.*
FROM sales
Ok, great, now press the “Next” and then the “Finish” button. In design view of Form1 just below the bottom of the form right click on the “sqlDataAdapter” and select generate dataset. Just go with the default settings and press the “OK” button. Ok now right click on the “sqlDataAdapter” again but this time choose “Preview Data”. On the form that pops up(See image below) press the “Preview” button

[Click to see full-size]

You will now see your data in the resulting form.(See image below)

[Click to see full-size]

Now look at the ball only because once data is
Thank you for taking the time to go through this tutorial, I really hope you have gained some knowledge. I fully intend to make these tutorials as complete and as easy as possible. Until next time take care, continuous learning.
JR

>> View the entire article here

How to Choose a Right Web Hosting Service?

Indeed, choosing a right web hosting service for your website is not an easy task especially when there are thousands of web hosting providers all offering almost identical web hosting packages. Therefore, it is important to know few major considerations even before you start your web hosting search. Below are three major criteria for web host seeker:

Web hosting features requirement

This is probably the most important consideration to start finding a host for your site. You need to decide the technical requirements for your website, this including:

a) Server platform and hardware requirements
If you plan to set up a website that uses programming environments such as Active Server Pages (ASP), Visual Basic scripts, Cold Fusion or Microsoft Access or Microsoft SQL database, in this case, you will need to find a web hosting service that supports Windows platform such as Windows NT or Windows 2000 servers.

Likewise, if you plan to use programming languages such as Perl, CGI, SSI, PHP or mySQL database, then any web hosting plans that support Unix/Linux platform should be sufficient to meet your hosting requirements. Once you have these server platform and hardware requirements in mind, you can decide the best web hosting plans for your need. For more information, you can read “How to select a web server and server platform?”

b) Disk space & Bandwidth requirement
Here is another technical requirement that you need to consider before selecting a web hosting plan, i.e. disk space and bandwidth. If you intend to publish a website that does not have a lot of contents (meaning, web pages), then the disk space requirement may not be a big concern to you. In general, a disk space with 200MB to 500MB should be enough to meet your hosting requirement. In contrast, if you plan to host a website with enormous amount of graphic pictures, mp3 or video files, then you should consider a web hosting plan that provide huge disk space, for example, 500 MB to 1,000 MB.

Similarly, the bandwidth requirements will depend on your site traffic estimation. Obviously, a Web site, hoping to attract high traffic will consume the monthly bandwidth allowance very quickly. If so, you need to find a web hosting service, providing a huge bandwidth and 40 GB to 100 GB per month. It depends on the requirements of your website, choose a web hosting service, providing a sufficient number of disk space and bandwidth is crucial consideration to prevent paying extra costs in the future should you overuse the monthly disk space and bandwidth allowances .

c) Other hosting features
While the above requirements are utmost important, there are other hosting features that you have to consider too. Can web hosting provider support video clips on your website, if you have? Is the web hosting service compatible with Dreamweaver or FrontPage web authoring tool? Do you plan to set up a virtual store online? Can the host support the e-commerce features without adding extra cost to your monthly payments? On top of that, you may also want to find out the number of email accounts provided, number of FTP accounts, web statistic software (analyze your web traffic), type of control panel supported (manage your web hosting account), database and scripting languages supported and etc.

Reliability and scalability

First-class Web hosting service provider offers reliable server uptime and high-speed Internet connection. You should only choose a web hosting service, ensure that at least 99% of server uptime, high-speed Internet backbones using at least OC3's (Optical Carrier) lines (155 Megabits per second) or above instead of T1 or T3 lines. A reliable web hosting service providers often invest large amounts of data on high-performance servers, high-speed backbone network infrastructure, multi-purpose center failed to provide a redundant, standby generators and firewall software protection to ensure that they meet the uptime guarantee conditions of service specified.

Similarly, you should choose a web hosting service with hardware facilities that designed for scalability, so that they can grow with your business. For example, if you need to increase more disk space, bandwidth or number of mySQL databases, you should be able to upgrade as needed without any problems.

Customer service and support

The last major consideration in choosing a web hosting service is a Web-hosting provider to find, provides excellent customer service and support. You should always make for a web hosting provider that offers 24 hours a day, 7 days a week technical support, experience with highly technical Fielded so that any web hosting problems will be resolved within a reasonable time. You can also consider to consider how to respond is their customer support by some e-mail request to the web hosting provider. In general, a response in less than 24 hours is considered acceptable. It is a sign of poor customer service, if more than one days to reply.

In addition, a web hosting provider with excellent support should also provide multiple support channels, such as toll-free phone support, 24/7 email support, live chat, online knowledgebase, Interactive flash tutorials and FAQ.

These are some of you choose your web hosting service's main concern. In addition, how long the web hosting service provider and the number of customers, they currently have is also a good indicator of their access to product quality, but also the company's stability. Even in the access network, the cost is also very important, but it should not be your primary consideration. Web hosting services because prices have over the years, due to the decline in competition, so the best price on the Internet to provide quality hosting services functions into a less than 10 U.S. dollars a month. If you do not fall below 10 U.S. dollars a month, you may be in the network business is not for long. Therefore, the price should not be a major deciding factor.

On the other hand, more importantly, to ensure that web hosting services, you choose to meet your website hosting requirements, guarantee that your site is always a satisfactory rate of acquisition, to provide scalable growth and expansion of your site and provide much good customer support. On your web page according to the requirements of the host, you can use the advantages of our web site, cheap web hosting review to find out the recommended web hosting services, with the above-mentioned three main criteria. I wish you good luck on your search.

Khurram Shah is the owner of Web Hosting Services, a website that provides complete and detail reviews on web hosting services. You can visit his website at

http://urswebhosting.com

How to Choose a Right Web Hosting Service?

Indeed, choosing a right web hosting service for your website is not an easy task especially when there are thousands of web hosting providers all offering almost identical web hosting packages. Therefore, it is important to know few major considerations even before you start your web hosting search. Below are three major criteria for web host seeker:

Web hosting features requirement

This is probably the most important consideration to start finding a host for your site. You need to decide the technical requirements for your website, this including:

a) Server platform and hardware requirements
If you plan to set up a website that uses programming environments such as Active Server Pages (ASP), Visual Basic scripts, Cold Fusion or Microsoft Access or Microsoft SQL database, in this case, you will need to find a web hosting service that supports Windows platform such as Windows NT or Windows 2000 servers.

Similarly, if you intend to use, such as Perl, CGI, SSI, PHP or MySQL database, then any web hosting plan, programming language support for Unix / Linux platform should be sufficient to meet the requirements of your host. Once you have considered these server platform and hardware requirements, you can decide the best hosting plan for your needs. For more information, you can read "how to choose Web server and server platform?"

b) Disk space & Bandwidth requirement
Here is another technical requirements, you only need to consider select a virtual hosting plan, ie disk space and bandwidth. If you want to publish a Web site, without a lot of content (meaning, web page), then the disk space requirements may not be a big concern you. In general, a 200MB hard disk space of 500 megabytes should be sufficient to meet the requirements of your host. Conversely, if you plan to hold a the same, graphics and video a large number of MP3 or video files, then you should consider a virtual hosting plan, such as providing a huge disk space, web site, 500 megabytes to 1,000 bytes.

Similarly, the bandwidth requirement will depend on your site traffic estimation. Obviously, a website that expect to attract high traffic will consume the monthly bandwidth allowance very fast. If so, you will need to find one web hosting service that offer huge bandwidth with 40 GB to 100 GB per month. Depending upon your website requirement, choosing a web hosting service that provide sufficient amount of disk space and bandwidth is crucial consideration to prevent paying extra costs in the future should you overuse the monthly disk space and bandwidth allowance.

c) Other hosting features
While the above requirements are extremely important, there are other hosting features that you have to check. Can web hosting provider support video clips on your site, if you? Is the web hosting service compatible with Dreamweaver or FrontPage web authoring tool? Are you planning a virtual online store? Can the host support the e-commerce features without additional costs to your monthly payments? In addition, you may also want to find out the number of e-mail accounts, provided that the number of FTP accounts, web statistics analysis software (your web traffic), type of control panel supported (manage your web hosting support accounts), database and scripting languages, etc.

Reliability and scalability

A first-class web hosting provider offers reliable server availability and fast Internet connection. You should only choose a web hosting service to ensure that at least 99% server uptime with high-speed Internet backbone with at least OC3 (Optical Carrier) lines (155 Megabits per second) or above instead of T1 or T3 lines. A reliable web hosting provider usually invests heavily on their data center infrastructure with high-performance servers, high speed multiple backbones providers with fail-over redundancy, backup generators to secure and firewall software protection in place they meet the uptime guarantee specified in the Terms of Service.

Similarly, you should choose a web hosting service with hardware facilities that designed for scalability, so that they can grow with your business. For example, if you need to increase more disk space, bandwidth or number of mySQL databases, you should be able to upgrade as needed without any problems.

Customer service and support

The last major consideration in choosing a web hosting service is to find a web hosting providers that offers excellent customer service and support. You should always search for a web hosting provider that offers 24 hours a day, 7 days a week technical support that fielded with highly experience technicians, so that any web hosting problems will be resolved within a reasonable amount of time. You may also want to consider to test how responsive is their customer support by sending few inquiry emails to the web hosting provider. In general, any response in less than 24 hours is considered acceptable. It is a sign of poor customer support if they take more than one day to response.

In addition, a web hosting provider with excellent support should also provide multiple support channels, such as toll-free phone support, 24/7 email support, live chat, online knowledgebase, Interactive flash tutorials and FAQ.

These are some of you choose your web hosting service's main concern. In addition, how long the web hosting service provider and the number of customers, they currently have is also a good indicator of their access to product quality, but also the company's stability. Even in the access network, the cost is also very important, but it should not be your primary consideration. Web hosting services because prices have over the years, due to the decline in competition, so the best price on the Internet to provide quality hosting services functions into a less than 10 U.S. dollars a month. If you do not fall below 10 U.S. dollars a month, you may be in the network business is not for long. Therefore, the price should not be a major deciding factor.

On the other hand, more importantly, to ensure that web hosting services, you choose to meet your website hosting requirements, guarantee that your site is always a satisfactory rate of acquisition, to provide scalable growth and expansion of your site and provide much good customer support. On your web page according to the requirements of the host, you can use the advantages of our web site, cheap web hosting review to find out the recommended web hosting services, with the above-mentioned three main criteria. I wish you good luck on your search.

If You need Unlimited Web Hosting Solution – Cheap Price visit

http://www.didohosting.com/

Unlimited Web Hosting Solution for individuals, small and medium-sized businesses and large corporations. cheap price