Meeting #5 – March 2011 – JavaScript and ASP.NET Homework Assignments Svetlin Nakov Telerik Corporation www.telerik.com.

Slides:



Advertisements
Similar presentations
RP Designs Semi-Custom e-Commerce Package. Overview RP Designs semi- custom e-commerce package is a complete website solution. Visitors can browse a catalog.
Advertisements

WEB DESIGN TABLES, PAGE LAYOUT AND FORMS. Page Layout Page Layout is an important part of web design Why do you think your page layout is important?
11 Getting Started with ASP.NET Beginning ASP.NET 4.0 in C# 2010 Chapters 5 and 6.
JavaScript Forms Form Validation Cookies. What JavaScript can do  Control document appearance and content  Control the browser  Interact with user.
Meeting #1 – November 2010 – Intro to C# Homework Assignments Svetlin Nakov Telerik Corporation
Tutorial 6 Working with Web Forms
Performed by:Gidi Getter Svetlana Klinovsky Supervised by:Viktor Kulikov 08/03/2009.
Macromedia Dreamweaver 4 Advanced Level Course. Add Rollovers Rollovers or mouseovers are possibly the most popular effects used in designing Web pages.
Tutorial 6 Working with Web Forms. XP Objectives Explore how Web forms interact with Web servers Create form elements Create field sets and legends Create.
Outline IS400: Development of Business Applications on the Internet Fall 2004 Instructor: Dr. Boris Jukic Table, Forms, Metatags and Frames.
Tutorial 6 Forms Section A - Working with Forms in JavaScript.
Web Development & Design Foundations with XHTML Chapter 9 Key Concepts.
Christopher M. Pascucci Basic Structural Concepts of.NET Browser – Server Interaction.
ASP.NET Programming with C# and SQL Server First Edition
Form Handling, Validation and Functions. Form Handling Forms are a graphical user interfaces (GUIs) that enables the interaction between users and servers.
CST JavaScript Validating Form Data with JavaScript.
Chapter 9 Collecting Data with Forms. A form on a web page consists of form objects such as text boxes or radio buttons into which users type information.
1 Web Developer & Design Foundations with XHTML Chapter 6 Key Concepts.
Tutorial: Introduction to ASP.NET Internet Technologies and Web Application 4 th February 2010.
JavaScript Form Validation
Reading Data in Web Pages tMyn1 Reading Data in Web Pages A very common application of PHP is to have an HTML form gather information from a website's.
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
XP Tutorial 6New Perspectives on HTML and XHTML, Comprehensive 1 Creating Web Page Forms Designing a Product Registration Form Tutorial 6.
_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications1.
JavaScript & jQuery the missing manual Chapter 11
Database-Driven Web Sites, Second Edition1 Chapter 8 Processing ASP.NET Web Forms and Working With Server Controls.
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
Chapter 6: Forms JavaScript - Introductory. Previewing the Product Registration Form.
Homework for October 2011 Nikolay Kostov Telerik Corporation
Telerik Software Academy ASP.NET Web Forms Data Validation, Data Validators, Validation Groups Telerik Software Academy
© Cheltenham Computer Training 2001 Macromedia Dreamweaver 4 - Slide No 1 Macromedia Dreamweaver 4 Advanced Level Course.
Forms Authentication, Users, Roles, Membership Svetlin Nakov Telerik Corporation
Overview of Previous Lesson(s) Over View  ASP.NET Pages  Modular in nature and divided into the core sections  Page directives  Code Section  Page.
XHTML Introductory1 Forms Chapter 7. XHTML Introductory2 Objectives In this chapter, you will: Study elements Learn about input fields Use the element.
McGraw-Hill/Irwin © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Dynamic Action with Macromedia Dreamweaver MX Barry Sosinsky Valda Hilley.
Programming with Microsoft Visual Basic 2012 Chapter 12: Web Applications.
XP New Perspectives on Browser and Basics Tutorial 1 1 Browser and Basics Tutorial 1.
Creating a Web Site to Gather Data and Conduct Research.
Robinson_CIS_285_2005 HTML FORMS CIS 285 Winter_2005 Instructor: Mary Robinson.
ASP.Net, Web Forms and Web Controls 1 Outline Web Controls Text and Graphics Controls AdRotator Control Validation Controls.
Web Programming: Client/Server Applications Server sends the web pages to the client. –built into Visual Studio for development purposes Client displays.
Section 17.1 Add an audio file using HTML Create a form using HTML Add text boxes using HTML Add radio buttons and check boxes using HTML Add a pull-down.
Murach’s ASP.NET 4.0/VB, C1© 2006, Mike Murach & Associates, Inc.Slide 1.
C# Tutorial -1 ASP.NET Web Application with Visual Studio 2005.
JavaScript, Fourth Edition Chapter 5 Validating Form Data with JavaScript.
Chapter 8 Collecting Data with Forms. Chapter 8 Lessons Introduction 1.Plan and create a form 2.Edit and format a form 3.Work with form objects 4.Test.
Meeting #6 – April 2011 – Web-Technologies Homework Assignments Svetlin Nakov Telerik Corporation
 Whether using paper forms or forms on the web, forms are used for gathering information. User enter information into designated areas, or fields. Forms.
HTML Forms.
LOGO FORMs in HTML CHAPTER 5 Eastern Mediterranean University School of Computing and Technology Department of Information Technology ITEC229 Client-Side.
Lesson 12 Adding Validation To The Movie Database.
Tutorial 6 Working with Web Forms. XP Objectives Explore how Web forms interact with Web servers Create form elements Create field sets and legends Create.
Tutorial 6 Working with Web Forms. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Explore how Web forms interact with.
HTML Form Widgets. Review: HTML Forms HTML forms are used to create web pages that accept user input Forms allow the user to communicate information back.
FrontPage Tutorial Part 2 Creating a Course Web Site.
INT222 - Internet Fundamentals Shi, Yue (Sunny) Office: T2095 SENECA COLLEGE.
Introduction to HTML. _______________________________________________________________________________________________________________ 2 Outline Key issues.
Meeting #4 – February 2011 – Web-Technologies Homework Assignments Svetlin Nakov Telerik Corporation
Tutorial 6 Working with Web Forms. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Explore how Web forms interact with.
HTML Forms.
Chapter 27 Getting “Web-ified” (Web Applications) Clearly Visual Basic: Programming with Visual Basic nd Edition.
Meeting #2 – December 2010 – Software Engineering Homework Assignments Svetlin Nakov Telerik Corporation
Working with ASP.NET Controls What is ASP.NET Using server controls in your pages Allowing users to create their own accounts Creating a login page Letting.
HTML Structure II (Form) WEEK 2.2. Contents Table Form.
Unit 4 Working with data. Form Element HTML forms are used to pass data to a server. A form can contain input elements like text fields, checkboxes, radio-buttons,
FORMS Explained By: Jasdeep Kaur. Lecturer, Department of Computer Application, PGG.C.G., Sector: 42, Chandigarh.
111 State Management Beginning ASP.NET in C# and VB Chapter 4 Pages
In this session, you will learn to:
JavaScript Form Validation
Programming with Microsoft Visual Basic 2008 Fourth Edition
Presentation transcript:

Meeting #5 – March 2011 – JavaScript and ASP.NET Homework Assignments Svetlin Nakov Telerik Corporation

1. Prepare at least 20 questions for preparation for the National Olympiad's IT test  Prepare at least one question for each category from the official conspectus  Try to create complex, non-trivial questions  Categories are officially published at sofia.bg/documents/Conspect0910.pdf sofia.bg/documents/Conspect0910.pdf sofia.bg/documents/Conspect0910.pdf  Follow strictly the IT test template: IT-Test- Questions-Template.pptx IT-Test- Questions-Template.pptxIT-Test- Questions-Template.pptx 3

1. Create an HTML page that has two text fields (first name and last name) and a button. When the user clicks the button, a message should show the text in the text fields followed by the current time. 2. Create a Web page that asks the user about his name and says goodbye to him when leaving the page. 3. Modify the previous HTML page to have a text field for address and on clicking the button check if the is valid (it should follow the ). 4. Create a Web page that shows 20 elements with random location, size and color. 5

5. Create a drop-down menu  Use table for the main menu blocks  Use hidden elements ( display: none ; position:absolute ; top:30px )  Use JavaScript and onmouseover and onmouseout event to change display: none/block 6

6. Create a DTHML page that has containing a text that scrolls from right to left automatically  Use setInterval() function to move the text at an interval of 500 ms  Use overflow:hidden for the  Use overflow:hidden for the  Use scrollLeft and scrollWidth properties of the element 7

7. Create a HTML web page with 15 image tags. Using jQuery print the alt and src attributes of all image tags. 8. Figure out how many elements on the page are hidden (hint:. length ). 9. Create a HTML web page with some tags. Select all of the div elements that have a class of "module" and make them green. 10. Declaratively make an unordered list. Using jQuery add 5 new items to the end the unordered list. 9

11. Try to write a simple HTML/jQuery based Tic-Tac- Toe game. 12. Write a simple HTML page, starting from empty file with only and tags. Add two tags, in one of them a numbered list of 3 points, an anchor linked to Telerik Academy Web site and a paragraph with yellow background. Build it at runtime, using only jQuery (no HTML). 13. Write a photo gallery slideshow using jQuery and AJAX to load the next image from the server dynamically at runtime. 10

14. Start Visual Studio 2010 and make new Web Site. Look at the files generated and tell what's purpose of each file. Explain "code – behind" model. Print "Hell ASP.NET" from code – behind and from UI. Show automatic generated files in executing directory using Assembly.GetExecutingPath(). 15. Create a Web page which saves empty file in ProgramFiles directory. Configure directory security so IIS process to be able to write in there. 16. Catch all the events in page lifecycle using appropriate method or event handler. 12

17. Do some kind of tracing of these events. 18. Create an HTML form that posts the contents of a textarea field to a server and the server prints it in another field. Don’t use code-behind. 19. Create an ASP.NET web form which posts the contents of a textarea field to a server and the server prints it in another field. 20. Use the src attribute of directive to create a page that doesn’t need to be precompiled. 13

21. Using the HTML server controls create a random number generator Web application. It should have two input fields defining a range (e.g. [10..20]) and a button to generate a random number in the range. 22. Re-implement the same using Web server controls. 23. Define a Web form with text box and button. On button click show the entered in the first textbox text in other textbox control and label control. Enter some potentially dangerous text. Fix issues related to HTML escaping – the application should accept HTML tags and display them correctly. 15

24. Make a simple Web form for registration of students and courses. The form should accept first name, last name, faculty number, university (drop-down list), specialty (drop-down list) and a list of courses (multi- select list). Use the appropriate Web server controls. After registration you should display summary of the entered information as formatted HTML. use dynamically generated tags (,, …). 25. Implement the "Tic-tac-toe" game using Web server controls. The user should play against the computer which should implement some kind of intelligence. 16

26. Make a simple Web Calculator. The calculator should support the operations like addition, subtraction, multiplication, division, square root and module. Also the calculator should be able to work with decimal numbers. Validation is essential! 17

ASP.NET State Management

27. Create an ASP.NET Web Form, which prints the type of the browser and the client IP address requested.aspx page. 28. Create a ASP.NET Web Form which appends the input of a text field when a button is clicked in the Session object and then prints it in a control. Use List to keep all the text lines entered in the page during the session lifetime. 29. Create two pages that exchange user input data with cookies. The first page is a login page. The second one should redirect to the first one if there’s no cookie. The cookie must expire in 1 minute. 19

30. Create a JavaScript function that deletes the ViewState hidden field variable. What happens at postback? 31. Implement a graphical Web counter. It should display as JPEG image the total number of visitors of the requested.aspx page since the start of the Web application. Keep the number of visitors in the Application object. What happens when the Web server is stopped? 32. Re-implement the previous task to keep the total number of visitors in SQL Server database. 20

33. Implement the Tic-Tac-Toe game which allows Internet users to play one against another. Multiple game sessions should be supported to run in parallel. The main page ( Default.aspx ) should list all games in the application (games now playing, finished games and games waiting for a second player). The user could start a new game or join existing game which has only one player or view who is the winner of any finished game. When starting new game or joining an existing game, the player should enter his or her name. Players who wait for an oponent to join to their game or to enter a valid move should check repeatedly at 1 second. 21

34. Create a form to register users with fields for preferred user name, password, repeat password, first name, last name, age, , local address, phone and an “I accept” option. All fields are required. Valid age is between 18 and 81. Display error messages in a ValidationSummary. Use a regular expression for the and phone fields. 35. Separate the fields in groups and validate them using Validation Groups. The Validation Groups should be at least three – Logon Info, Personal Info, Address Info.

36. Add a radio button to choose the gender (male / female). If the user is male, dynamically display a list of check boxes for choosing his favourite cars (e.g. BMW, Toyota, etc.). If the user is female display a drop-down list to allow her select her favourite coffee (e.g. Lavazza, New Brazil, etc.). Note that selecting a coffee is optional for the female users. Implement this by server PostBacks. 37. Implement the previous with client-side JavaScript.

Implement a simple Web application using Master Pages. The application should be like a user profile – separate pages for Profile, Friends, Additional Info, etc. Add a site map ( Web.sitemap ), site path and navigation menu in the master page Create a user control that visualizes a menu of links. The control should have a property to initialize the menu links (a list of items, each containing a title and URL). Use DataList and data binding to visualize the menu links. Implement a property to change the font and the font color. Don’t use the Menu control! Add to the previous application the possibility to view the Web application in Bulgarian and in English.

 Homework solutions should be submitted at the following Web site:   Solutions should be packed in a single ZIP or RAR archive (up to 8 MB) 28

 The deadline for the homework is:  A week before the next training session  Everybody is free to use help from friends, teachers or Internet  Submission of the same work by different authors may result in a disqualification  Ask your questions in the Telerik School Academy official discussion group: 

Questions?