Está en la página 1de 17

BCA-209 | HTML, VBScript, ASP Listing 1. Write an HTML page to generate following formatted output.

ASS -1 BASIC TAGS This is where the text of the document would be.

Glossary
Term 1

Level 1 Heading
Level 2 Heading
Level 3 Heading
Level 4 Heading
Level 5 Heading
Level 6 Heading

A very intelligent turtle Found programming UNIX a hurdle The system, you see, Ran as slow as did he, And that's not saying much for the turtle. Mercifully anonymous Created by Robert Meegan Created on 16 December 1996 The bold element uses a bold font to display the text. This is in bold text. The italic element renders text using an italic font. This is in italic text. The teletype element displays the contents with a monospaced typewriter font. This is in teletype text. The underline element causes text to be underlined in the viewer. This text is underlined. The strikethrough element draws a horizontal line through the middle of the text.

This is a strikethough example.

The big print element uses a larger font size to display the text. This is big text.
The small print element displays the text in a smaller font size. This
subscript. The superscript element moves the text higher than the surrounding text and (if possible) displays the text in a smaller size font.

is small text. This is a This is

The subscript element moves the text lower than the surrounding text and (if possible) displays the text in a smaller size font.

a superscript.

This is an example of font selection. This text is red This text is green
Size 1

Size 2
Size 3

Size 4

Size 5
Size 6

Size 7

ASS-2 HTML Assignment related to Ordered & Unordered List


(1) The library has the following cassettes: 1 Cinema Bombay I love you Crazy Crazy The Sun 2 Educational Mathematics I. Part I: Analytical Geometry II. Part II: Calculus III. Part III: Trigonometry 3 Cultural Classical Music I. M. S. Subalakshmi II. Sreenivasa Iyengar III. Yesudas IV. Thiagaraja Bhagavathar Classical Dances I. Bharata Natyam II. Kuchupudi III. Bhangra

ASS-3 HTML Assignment related to Table Tags


1) Generate following output. Railway Time Table And Fare List Name of Train Rajdhani Express Madras Mail Konya Express Konkan Express Deccan Express Place Bombay Bombay Bombay Bombay Bombay Destination Time Arrival departure Delhi 07:30 08:45 Madras 09:00 10:15 Banglore 11:30 12:25 Manglore 13:30 14:45 Pune 16:00 17:30 Fare Rs. 989.00 Rs. 450.00 Rs. 645.00 Rs. 756.00 Rs. 345.00

2) Write an HTML program to print the following table. Telephone Bill


Subscriber's Name & Address K. Shelly 4/45 FOURTH STREET, SHANTHI NAGAR, TIRUNELVELI -627002 TELEPHONE TYPE NO. 575077 GENL RES PERM OPENING METER READING 1052 Rate 0.8 CLOSING METER READING 1297 DETAILS No. of Calls 95 Consumer No. PL 00515077 BILL DATE 01-Aug-97 DUE DATE 18-Aug-97 FREE CALLS PAY BY DATE 25-Aug-97 P. O. Stamp

METERED CALLS 245

DEBIT CALLS 0

CREDIT CALLS 0 ITEM

Charge 76 10 290 300

SURCHARGE AFTER PAY BY DATE AMT ON/BEFORE PAY BY DATE AMT AFTER PAY BY DATE

150 PERIOD 10/09/97 to Rent 200.00 31/10/98 16/05/97 to ITEM 76.00 15/07/97 TKP/PG 16/05/97 to 0.00 CALLS 15/07/97 16/05/97 to ITX 0.00 CALLS 15/07/97 MISC TAX 14.00 TOTAL 290.00 ADDRESS PLEASE PAY BEFORE DUE DATE AND AVOID DISCONNECTION Account Officer (T.R. Computer)

CHARGEABLE CALLS 95 AMOUNT

E.&O.E PLEASE SEE OVERLEAF FOR CODES/ INSTRUCTIONS

ASS-4 HTML Assignment related to Form Tags


1) Generate following output:

SUBSCRIBE TO CORPWORLD
Interested in receiving daily email updates of all the latest exploits of BigCorp? Well, now you can. And, best of all, it's free! Just fill out this form and submit it by clicking the "Send it In" button. We'll put you on our mailing list, and you'll receive your first email in 3-5 days. Please complete all of the following: First Name: Last Name: Business:

We must have a correct email address to send you the newsletter: Email:

How did you hear about BigCorp's email letter? Here on the Web In a magazine Newspaper story Other

Would you care to be on our regular mailing list? Yes, I love junk mail Which are the games you like to play?

(Give options like Cricket, Football, Hockey, Chess and Tennis. And only 2 options should be seen on the screen.) Enter comments about this Website.
Enter comments about this Web site. Good or Bad.

Reset

Send it!

Reset

Send it!

1) To develop an HTML document to display the following form.

Computer Society of India


Annual Convention 1998
Participants Registration Form 1. Name of the participant 2. Address : Street Town State Pin code 3. Select the work you are involved in Computer education Software development Hardware maintanence Systems analysis Computer center management 4. Select any tutorials you wish to attend. 16th September 1998 E-commerce Software security RDBMS

HTML and Java Internet security Very large databases Type any of your special requirements in this box

17th September 1998

Submit

Reset

ASS-5 LINKS
1.
Develop following HTML pages with inter links to each other 1. home.html, 2. aboutme.html, 3.friends.html, 4. career.html

2. Generate an HTML page linkex.html with following formatted output. Provide links to three other html pages, fruit.html, animals.html and birds.html. Each of them will show list of at least 10 items in them with variety of formatting. Provide link to below given page from all the three pages. Contents Fruits Animals Birds Email Contact us Welcome to you Provide some introductory details

Note that the link color is #AAAA00, visited link color is #AA00AA, active link color is #00AAAA

Develop the following output using frameset and frame tags CONTENTS Welcome To You Select any one of the item shown in the left and you will Fruits find five names which displays in this frame. Animals Birds

CLIENT SIDE SCRIPTING EXAMPLES :


9 Write an html page to find the month name from the inputted month number.

10

Write an html page to print result according to selected choice (ADD,SUB,MUL,DIV, MOD)

11

Write an html page to show total no. of days from the inputted month and year.

12

Write an html page to print factorial of inputed number.

13

Write an html page for registration form with all the data validation.

14

To print 1 to 10 numbers (using for..Next, Do Whileloop, whilewend & by msgbox function) Generate an HTML form that will read number and print its factorial

15

Event Handling using VBScript 1. Display a message box giving message Onclick event on button using ONCLICK button click event. 2. Display a message box giving message This is Onload event using ONLOAD event. 3. Use CLICK HERE TO ENTER NAME button click event and Accept your name and print it with Hello! How are you nnnn. Where nnnn is your name. 4. Display a message box giving message The value entered is nn using NUMBER button click event. Where nn is the number entered in the text box. 5. Display a message box giving message Enter your name using onload event. Find the length of the inputted string and display the message Length of your name is nn where nn is the length of the string.

16

Create the following Form and perform the following validations and functions User Name : Password : Maximum 16) Login Validations: 1. Both fields are compulsory & it should not contain blank space. 2. User name must contain only characters. 3. Password begins with an alphabet only. 4. Length of password is minimum 8 characters and maximum 16 characters. (Minimum 8 characters,

17

CALCULATION BASED ON TEXTBOX ENTRY 10.Calculate Total marks, percentage and class of the student. Directly enter your name in the textbox. NAME ORACLE C++ E-COMMERCE SAD STATISTIC SE TOTAL PERCENTAGE CLASS : : : : : : : : : :

18

1)

User login form First name: Last name: Address: Marital status: Married Unmarried Gender: Male Female English Ability: Read Write Speak Birth date: Jan click submit reset

To create the following form. When press the click button in the last text box, display the selected field like you have selected Married + Male + Read.

SERVER SIDE SCRIPTING EXAMPLES :


1 Write an html page for following.

Write an asp page to display the message You have selected red color with background color red if you have chosen color red from an html page. 2 Write an html page for following.

3 4

Write an asp page, which display a message whether you have entered correct or incorrect password. If password is correct then print the message with the font color green and if password is incorrect then print the message with the font color red. Valid name and password is admin. Develop an asp page math. asp that accepts no1, no2 and operator (add, sub, mul, div) from query string and show the results based on value of operator. For ex. http://localhost/example/math.asp?no1=10&no2=20&op=add Write an html page for following.

Develop an asp page to print multiplication table of inputted number in tabular form. Write an html page for following.

Develop an asp page which shows calendar according to inputted data of month and year in tabular form.

DATABASE RELATED EXAMPLES :


19 Create Table user with following structure and populate with some sample data.

Field name
USE_ID USER_PWD

Data type
TEXT(15) TEXT(15)

Design login.html and login.asp page to verify whether user id and password provided is valid or not. Create a table called friends having following fields and solve the following examples.

Field name
F_ID F_NM F_BDT F_ADD1 F_ADD2 F_ADD3 F_HM_PH F_MOB_PH F_EMAIL 20 21 22 23 24

Data type
NUMERIC(INTEGER) TEXT(100) DATETIME TEXT(30) TEXT(30) TEXT(30) TEXT(20) TEXT(20) TEXT(30)

Write an asp page to display friends id, name, birthdate and mobile number in tabular format. Write an asp page to display citywise friends information with appropriate formatting. Write an html page which read friend id and post it to an asp page, which displays details of that id. Write an html page, which will read month and post it to an asp page, which displays the list of friends whose birthday falls in the given month of current year. Develop an admin utility as explained below. Task 1 : Develop admin.asp with following links. 1. Insert Friend ( newfriend.html) In this page design a form to read friend details with all possible validations. Submit the data to newfriend.asp page. In the asp page write code to create new record in friend table with submitted data. newfriend.html newfriend.asp

2.

Update Friend (listfriend.asp) In listfriend.asp page show the list of friends in the table in the listbox. On submission load the page showfriend.asp, which shows the details of the selected friend in the form components. When submitted these data to updatefriend.asp page update the record changes in the database. listfriend.asp showfriend.asp updatefriend.asp Delete Friend (dlistfriend.asp) In delfriend.asp page show the list of friends in the table in the listbox. Submit the data to delfriend.asp where asp code will delete the selected friend record. Dlistfriend.asp delfriend.asp

3.

After performing any operation show appropriate message and provide a link to return to admin.asp

Create the following Form and perform the following validations and functions Name of Person : Date of Birth : Email Address : Save & Display all Validations: 1. All fields are compulsory. 2. Date of Birth must be a valid date less than today date. Function: 1. When the button is pressed, save the record after validating the data and display all the records in tabular format. Create the following Form and perform the following validations and functions User Name : Password : Login Validations: 1. Both fields are compulsory. 2. User name must contain only characters. 3. Password may contain any characters except symbols like $ # @ ! % ^ & * (space). 4. Password begins with an alphabet only. 5. Length of password is minimum 8 characters and maximum 16 characters. Functions 1. When the user clicks the button, search the user name in the database. 2. If User name is not found, then display a message informing User Doesnt Exist! 3. If user name is found, compare the password and see if it matches. 4. If password matches, display the second form to enter details. 5. If password doesnt match, display message Please re-enter password and redirect the focus to login page. Roll No. :

Exam No.: Subject No.: Marks : Save it Validations: 1. All the fields are compulsory. 2. Roll no, Exam no are >0 and total marks is >=0 but less than 100. 3. Exam no. indicates 1, 2 or 3. Functions: 1. When the save it button is clicked, check if the rollno, exam no and subject no. combination is present or not. If it exists then update the record otherwise add a new record in the database. 2. Display the result of the roll no entered for the exam number entered for all the subjects and also display the total marks scored in that exam. Create the following Form and perform the following validations and functions Subject No. : Subject Title : Year & Course : Paper Setter : From College : Save & Display Validations: 1. All fields are compulsory. Functions: 1. When the button is clicked, Save the record in the database. 2. Display all the subject details pertaining to the same paper setter entered. 3. Display all the subject details of paper setters from the same college entered. (list box) (list box) (list box) (list box)

Validations 1) Field empty check 2) No Positive, Negative or Zero check 3) All character check 4) Number Check 5) Date Check 6) Length Check

También podría gustarte