I have Assignment about ASP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • khalfan
    New Member
    • Dec 2009
    • 2

    I have Assignment about ASP

    Assignment Objectives:

    The objective of this assignment is to design and develop a dynamic web site application with the use of ASP to create a database and manipulate the information.

    Assignment Purposes

    This assignment aims to

    • Introduce practical problems to students to implement a dynamic web page on a web server.

    • Make students to implement specific application for a specific topic.

    • Test the functionality and the links of the web site.

    • Enhance the academic report writing skills of the student.



    Learning Outcomes

    On completion of this assignment, students will be able to:

    1. Construct dynamic Web Pages using Personal Web Server.
    2. Apply easy integration of data sources.
    3. Build a Server Side Web Application on IIS.


    Tasks

    You are required to complete the following questions as per the requirement provided.

    Create a web page in ASP for a Car Company which has a menu. The menu has three options: Send information to a file, Deal with Database, and navigate to other pages.

    The first option will link to a form. You need to process this form.

    The second option is to connect to Car database. Create the following table in MS-Access with the following fields:

    Car_ Number (Integer )
    Type (Text)
    Model (Text)
    Year (Year)
    Date_ of _registration (Date)
    Price (Integer)
    You are required to:
    Create a web page in ASP
    nsert the details of a new Car that lists all records in the table ordered by the year.
    Create a web page in ASP to iusing a form.

    Create a web page in ASP that searches for a particular Car and displays the result in a table.

    These tasks should be implemented using ASP connectivity with ODBC for connecting to MS-Access.

    The third option is a link to a menu, which has the following choices: Date Viewing, Image random display, and Number of visitors.

    The first choice should display the Date, Time, and Day

    The second choice should display Three images randomly.

    The fourth choice should display number of visitors to the web page.

    Use include file component to display the date in all pages.
  • sanjib65
    New Member
    • Nov 2009
    • 102

    #2
    I'd try to answer one by one. But you have to do it yourself, otherwise you'll never learn. The assignment is a very basic and simple web site application. First of all you have referred it as ASP which is wrong. It should be ASP.NET as these two are completely different.

    Please read: http://en.wikipedia.org/wiki/Asp.net

    I hope you know to create a new website in your VS. That is Step one, creating a web form whch starts with a Default.aspx page.

    In that page's design view you have to drag reqired Labels, TextBoxes and a Button to put those datas in your Access DataBase.

    Now read this very helpful link where you'd learn how to work with Access database:


    In the third option, the first choice very easy get Date, Time in a Label.Text.
    The random image code is slightly difficult for the newcomer. You try this:
    Code:
    using System;
    using System.Data;
    using System.Configuration;
    using System.Web;
    using System.Web.Security;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Web.UI.WebControls.WebParts;
    using System.Web.UI.HtmlControls;
    
    public partial class _Default : System.Web.UI.Page 
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //This code generates a random number between 0 and 10.
    Random rndGen = new Random();
    int rndNum = rndGen.Next(10);
    //If the number is less than 5, the image of the red bike is displayed on the home page
    //If the number is greater than or equal to 5, the image of the blue bike is displayed on the home page
    if (rndNum<5)
        BikeImage.ImageUrl="RedBike.gif";
    else
        BikeImage.ImageUrl = "BlueBike.gif";
        }
    }
    you should change the Image files accordingly.

    The last choice is also slight difficult. You have to read state management of the application. Search google, there are plenty of good tutorials. In google books, search asp.net, there you get many limited previews of asp.net books from eminent authors. Here is link:

    The most up–to–date and comprehensive introductory ASP.NET book you'll find on any shelf, Beginning ASP.NET 3.5 in C# 2008 guides you through Microsoft's technology for building dynamic web sites. This book will enable you to build dynamic web pages on the fly, and it assumes only the most basic knowledge of C#. The book provides exhaustive coverage of ASP.NET, guiding you from your first steps right up to the most advanced techniques, such as querying databases from within a web page and tuning your site for optimal performance. Within these pages, you'll find tips for “best practices” and comprehensive discussions of key database and XML principles you need to know in order to be effective with ASP.NET. The book also emphasizes the invaluable coding techniques of object orientation and code behind, which will start you off on the track to building real–world web sites right from the beginning—rather than just faking it with simplified coding practices. By the time you've finished the book, you will have mastered the core techniques and have all the knowledge you need to begin work as a professional ASP.NET developer.


    Lastly along within bytes.com, there are plenty of good articles on ASP.NET please go through them.

    Comment

    Working...