Wednesday, March 18, 2009

ASP.Net Validation Control

Required Field Validator: is a control used when a user have to enter some data. If the required field validator stop the processing to the next page until the data have been enter in.

Range Validator is used when you have to check is everything is going right with certain option. For example how this validator works Well let say that we ar putting a number in the textbox you can set how high the number goes and how low the number can go into the textbox.

Reqular Expression Validator is used to set certain expression that you want to be enter in the textbox. If the expression doesn't match the expression that you have setthen you can used the system that the expression validator has.

Compare Validator is used when you have to compare two fields its more know to be used in Password or registration and the validation is also case sensitive. Is tell when the data have been enter incorrectly.

Cistom Validator is used when you want to used certain function.

Validation Summary Validator is used to display error message. Let's say that you want to validation message in one page for a better look. If you have set the properties of that validator in the area that say text set is to other validation control. This will ensure your validation works.

http://www.codersource.net/asp_net_validation_controls.aspx
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.customvalidator(VS.71).aspx

Wednesday, March 11, 2009

Trace

When using VB in the source code when put the trace function. when you play the vb and trace is active it well show you all the code and stuff from the soruce view. when the trace is not active is will run normally with out the source code and the other stuff that connected to it.

to active the trace is to set the "true"
to not active the trace is to set the "false"

GST Formula

Here is a formula for calculating GST

GST = TotalPrice/(1+(GSTPercentage/100))

that is the formula on how the formula works.

Wednesday, February 25, 2009

Lesson 3 Master Page

Today we had to make a really bad tamplate of a website so we can see how we create a template in Visual Basic by using a master page. when we play with a grid view and content placeholder. The grid places all the information from the database and the content place holder is where you place your text that you want to put in the website.

Shoping Cart Process

The step of how a online shopping cart works
  • First step is that you select a item
  • second step you get a item decribtion
  • third step selected how many you want
  • fourth step type / write out your home address or a place where it can be deliver to
  • fifth step then it confirm that you information it correct
  • sixth step is payment it need you to enter you type of payment example credit card enter your card number.
  • seventh step finalized your payment
  • eighth step then it say you have pay for this item

Wednesday, February 18, 2009

Todays Work

To we reverise the our work from last week class on query strings and session. The second work we did is looking at the shopping cart and what it does.

ASP.NET LINKS

here are two links that I found on the net that

www.essentialobjects.com

This website is a asp.net website that links you popup calendar & date/time picker Works for all version of ASP.NET.

www.aspx.net

This website is asp.net website that links you to a list of asp.net and other programming languages.