7 Client Side Development In Asp Net Core

NET Centric Computing · Unit 7 · 4 hrs

Client-side Development in ASP.NET Core

Exam-focused notes for Client-side Development in ASP.NET Core (NET Centric Computing, CSC378): what the TU syllabus asks and how it has actually been tested, with 5 solved past questions from this unit.

What this unit covers

  • Common client-side web technologies
  • JQuery
  • Forms and Validation
  • Single Page Application (SPA) Frameworks: Angular, React

Forms and Validation

20815 marks

Write a program to validate the form that takes input user name, password and phone number using JQuery. All fields must be non-empty and phone number must contain exactly 10 digits. [5]

--- Part Purpose ------ $(document).ready() Ensures the DOM is fully loaded before jQuery runs event.preventDefault() Stops the form from reloading the page on submit .val().trim() Gets the field value and removes leading/trailing spaces === "" Checks if th...

Full solved answer →
20785 marks

Why do we need to validate the form? How can you use react for this? [5]

Form validation is the process of checking user input before it is submitted to the server. We need form validation for the following reasons: - Data Integrity: Ensures that only correct and complete data is sent to the server (e.g., empty username or passw...

Full solved answer →

Single Page Application

20795 marks

What does single page application means? Discuss about server side strategies. [5]

A Single Page Application (SPA) is a web application that loads a single HTML page and dynamically updates the content as the user interacts with the application, without refreshing or reloading the entire page. Key characteristics: - Delivers dynamic updat...

Full solved answer →

Common client-side web technologies

20765 marks

Explain the client-side scripting with practical example.[5]

Client-side scripting refers to scripts that are executed on the client's browser rather than on the web server. The script is downloaded along with the HTML page and runs locally on the user's machine without requiring a round-trip to the server. JavaScrip...

Full solved answer →
20765 marks

Differentiate between client-side and server-side script.[5]

Client-Side Script refers to code that is executed on the user's browser (client machine). The script is downloaded from the server and runs locally on the browser without any server interaction. Server-Side Script refers to code that is executed on the web...

Full solved answer →