TEMPESTINI.NET

Observations in Software Development

Lab 4 – Create a Simple Web Application

Posted by Rick Tempestini on July 4, 2007

This lab will create a web application that creates a greeting card similar to the one in chapter 6 of your book. You will add and populate dropdown list controls and radio button list controls. Then, you will experiment with the AutoPostBack property of the controls.

Lab4
Default.aspx
Default.aspx.vb
defaultpic.png

3 Responses to “Lab 4 – Create a Simple Web Application”

  1. Chester Fornal said

    someone asked in class why html controls are in the toolbox when you can simply use the standard server controls. Backwords compatability with classic asp was mentioned as a reason but I have just read another reason…

    quoted from Wrox asp.net 2.0
    “Elements that ASP.NET code will manipulate or reference must be declared as server controls.
    In other words, they must contain the attribute runat=”server” in their declaration—as the
    ContentPlaceHolder control in the example does. You will use predominantly server controls
    throughout the pages you build in ASP.NET. However, server controls do exert much more load on the
    server when generating the page, compared to just declarative HTML and other content. Therefore,
    where they are not required, they should be avoided and the standard HTML controls used instead.”

  2. Absolutely. If you do not need server-side functionality for a control many people will recommend that you only use the simple HTML controls. In this case, the controls in the HTML grouping in the toolbox should be used without the runat=”server” attribute. As mentioned in class, if you do need to programmatically access the control (even if it is an HTML control) then add the runat=”server” attribute to the control.

    In a future lab, we will use the regular HTML table control to build the layout of our web page. Since we will not be accessing this control at the server we can use the basic HTML control that won’t be processed by the server – it will just be sent directly to the client at runtime.

  3. youtube video download…

    [...]Lab 4 – Create a Simple Web Application « TEMPESTINI.NET[...]…

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

 
Follow

Get every new post delivered to your Inbox.