473,811 Members | 3,479 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

I have Assignment about ASP

2 New Member
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.
Dec 22 '09 #1
1 3326
sanjib65
102 New Member
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:
http://www.homeandlearn.co.uk/csharp/csharp_s12p4.html

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:
Expand|Select|Wrap|Line Numbers
  1. using System;
  2. using System.Data;
  3. using System.Configuration;
  4. using System.Web;
  5. using System.Web.Security;
  6. using System.Web.UI;
  7. using System.Web.UI.WebControls;
  8. using System.Web.UI.WebControls.WebParts;
  9. using System.Web.UI.HtmlControls;
  10.  
  11. public partial class _Default : System.Web.UI.Page 
  12. {
  13.     protected void Page_Load(object sender, EventArgs e)
  14.     {
  15.         //This code generates a random number between 0 and 10.
  16. Random rndGen = new Random();
  17. int rndNum = rndGen.Next(10);
  18. //If the number is less than 5, the image of the red bike is displayed on the home page
  19. //If the number is greater than or equal to 5, the image of the blue bike is displayed on the home page
  20. if (rndNum<5)
  21.     BikeImage.ImageUrl="RedBike.gif";
  22. else
  23.     BikeImage.ImageUrl = "BlueBike.gif";
  24.     }
  25. }
  26.  
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:

http://books.google.co.in/books?id=L...age&q=&f=false

Lastly along within bytes.com, there are plenty of good articles on ASP.NET please go through them.
Dec 24 '09 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

23
3241
by: Paul Rubin | last post by:
OK, I want to scan a file for lines matching a certain regexp. I'd like to use an assignment expression, like for line in file: if (g := re.match(pat, line)): croggle(g.group(1)) Since there are no assignment expressions in Python, I have to use a temp var. That's a little more messy, but bearable:
10
3326
by: Andrew Koenig | last post by:
It has been pointed out to me that various C++ books disagree about the relative precedence of ?: and the assignment operators. In order to satisfy myself about the matter once and for all, I looked at the grammar in the C++ standard. The relative fragments are as follows: conditional-expression: logical-or-expression logical-or-expression ? expression : assignment-expression
5
4838
by: CoolPint | last post by:
It seems to me that I cannot assign objects of a class which has a constant data member since the data member cannot be changed once the constructor calls are completed. Is this the way it is meant to be? Am I not suppose not to have any constant data member if I am going to have the assignment operator working for the class? Or am I missing something here and there is something I need to learn about? Clear, easy to understand...
16
2624
by: Edward Diener | last post by:
Is there a way to override the default processing of the assignment operator for one's own __value types ? I realize I can program my own Assign method, and provide that for end-users of my class, but I would like to use internally my own = operator for some of my value types, so I can say "x = y;" rather than "x.Assign(y);". The op_Assign operator seems impossibly broken since it takes __value copies of the two objects. Perhaps there is...
9
3069
by: Rick N. Backer | last post by:
I have an abstract base class that has char* members. Is an assignment operator necessary for this abstract base class? Why or why not? Thanks in advance. Ken Wilson Amer. Dlx. Tele, Gary Moore LP, LP Faded DC, Jeff Beck Strat, Morgan OM Acoustic,
1
1818
by: Jon Slaughter | last post by:
I have a chain of classes(i.e., a series of classes each containing an array of the next class). Each class has array like access. struct Myclass1 { vector(Myclass2) _Myclass2; Myclass2& operator(int i); }
166
8700
by: Graham | last post by:
This has to do with class variables and instances variables. Given the following: <code> class _class: var = 0 #rest of the class
6
13388
by: Neil Zanella | last post by:
Hello, I would like to know whether the following C fragment is legal in standard C and behaves as intended under conforming implementations... union foo { char c; double d; };
35
2462
by: nagy | last post by:
I do the following. First create lists x,y,z. Then add an element to x using the augumented assignment operator. This causes all the other lists to be changed also. But if I use the assignment x=x+ instead of using the augumented assignment, the y and z lists do not change. Why is that? This does not happen when I work with integer data type for example, as shown below. Thanks for your help
20
2147
by: TimeHorse | last post by:
I would like to gauge interest in the following proposal: Problem: Assignment statements cannot be used as expressions. Performing a list of mutually exclusive checks that require data processing can cause excessive tabification. For example, consider the following python snipet...
0
9731
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9605
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10651
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10405
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9208
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7671
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6893
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5556
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5697
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.