Some information is expected to be present on a business web site. Visitors want to learn more about the company and also gain a level of confidence from the web site content. Most importantly, you want to encourage potential customers to take the next step and make contact. Along with the home page, the 5 pages listed below help provide visitors with more information and a degree of confidence.
- About Us – This is often the 1st page visited after the home page. People want to know more about the company and its history. However, steer clear of adding too much text. Visitors eyes will glaze over and the important pieces if information will be lost among the “fluff.”
- Contact Us – The goal of nearly every business web site owner is to convert a visitor to a customer. The first step is to have the visitor contact you. The contact page should show all forms of contact (address, phone, e-mail). Contact form should ask for minimal information so as not to scare away a potential customer. Only name and 1 contact method, usually an e-mail address, should be required.
- Services/Products – What does your company do? What services and/or products do you offer? This is the place to convey the company’s value proposition and also give a bit of a sales pitch.
- Testimonials – No advertising is more powerful than positive reviews from current and former clients/customers. This gives potential customers a feeling of security and trust.
There are times when you need to ensure numeric values are entered into a TextBox control.
This can be accomplished using a CompareValidator with the Operator attribute set to "DataTypeCheck" and Type attribute set to the numeric type (Double or Integer).
The sample below allows only double values in the TextBox control.
<asp:TextBox ID="Mileage" runat="server" Columns="8"></asp:TextBox>
<asp:CompareValidator ControlToValidate="Mileage" Operator="DataTypeCheck"
ID="MileageValidator" runat="server" Type="Double"
Display="Dynamic" ErrorMessage="Please enter a valid mileage amount.">
In the C# code use the QueryString array within the Request object to retrieve request values.
In the example below the query string parameter named “parm” (no quotes) was received in the HTTP GET request.
String valu = Request.QueryString[“parm”];
The string valu would contain the value “thisvalue” (no quotes) after the statement above was executed.
ASP pages can be written in one of 2 ways – inline or code-behind.
Code-behind pages separate the user interface from the business logic, making it a better choice in most cases.
From an architecture perspective, code-behind files allow for a cleaner system implementation.
Code-behind files allow a developer to separate the UI display from the UI processing.
The only code that should exist in the ASPX file itself is code (typically script) that specifically services the display.
It is generally easier to reuse code in a code-behind file than in a single file with inline code.
Code-behind development provides separation of the design and development functions, allowing designers to work on the ASPX file and coders to do the code-behind development.
Advantages of code-behind development include:
- compile-time warnings
- type safety
- better debugging support since Visual Studio was designed for code-behind development./li>
Read more about the code-behind model.
Welcome to the new blog for Web Technology, Inc. In the days ahead you’ll find technical tips, updates on current technology trends as well as general technology information to keep you up-to-date with the latest news and trends.
The blog is a long time coming and we hope you find it useful. Please come back and visit.
Posted in blog Tagged blog