0% found this document useful (0 votes)
14 views3 pages

Asp ch3

The document contains a series of questions and answers related to ASP.NET, covering topics such as the structure of an ASP.NET page, the use of Visual Web Developer, and event-driven programming. It also includes direct questions about creating HTML portions, differences in property settings, and the role of the Toolbox. Additionally, it discusses the significance of the @Page directive in connecting HTML to server-side code.

Uploaded by

mohamedliban972
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views3 pages

Asp ch3

The document contains a series of questions and answers related to ASP.NET, covering topics such as the structure of an ASP.NET page, the use of Visual Web Developer, and event-driven programming. It also includes direct questions about creating HTML portions, differences in property settings, and the role of the Toolbox. Additionally, it discusses the significance of the @Page directive in connecting HTML to server-side code.

Uploaded by

mohamedliban972
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Plasma University

Subject: Dotnet Asp


Class: BCS Semester VI
Chapter 3 questions
1) What are the two main portions of an ASP.NET page?
A) HTML and CSS
B) HTML and JavaScript
(C) HTML and source code
D) HTML and XML
2) Which view in Visual Web Developer allows you to see both the HTML and source
code?
A) Source view
B) Design view
(C) Split view
D) Preview view
3) What does the <%@ Page %> directive specify in an ASP.NET page?
A) The HTML content
(B) The programming language and code file
C) The database connection
D) The web server details
4) Which of the following is a way to add Web controls to an ASP.NET page?
A) Directly editing the HTML file
(B) Using the Toolbox
C) Modifying the web.config file
D) Writing inline CSS
5) What is the function of a Label Web control in ASP.NET?
A) To create a hyperlink
B) To display static text
(C) To display dynamic text
D) To create a button
6) What is the purpose of the runat="server" attribute in ASP.NET?
A) To specify client-side scripts
(B) To indicate that the control should be processed on the server
C) To define a CSS style
D) To create a JavaScript function
7) How can an event handler in ASP.NET be created for the Page Load event?
A) By directly editing the HTML
(B) By double-clicking in the designer
C) By modifying the web.config file
D) By writing inline JavaScript
8) What type of code is executed on the server when an ASP.NET page is requested?
A) Client-side code
B) Static HTML
(C) Server-side code
D) CSS styles

1
9) Which section of an ASP.NET page contains the HTML markup?
A) Code file
B) Source code
(C) HTML portion
D) Style sheet
10) What does the term "event-driven programming" refer to in ASP.NET?
(A) Code that runs in response to user actions
B) Code that runs without user interaction
C) Static code execution
D) Compilation of HTML files

Part Two: Direct Questions


1) Describe the process of creating the HTML portion of an ASP.NET page using Visual
Web Developer.

Creating the HTML portion:


Use Source, Design, or Split view in Visual Web Developer to add static HTML and
Web controls, linking them to server-side code.

2) Explain the differences between declarative and programmatic property settings for Web
controls in ASP.NET.

Declarative settings are defined in the Properties window or HTML tags;


Programmatic settings are applied through server-side code.

3) What is the role of the Toolbox in Visual Web Developer when working with ASP.NET
pages?

The Toolbox provides HTML elements and Web controls that can be dragged onto the
designer to build the ASP.NET page visually.

4) How does the ASP.NET page handle dynamic content generation when a web page is
requested?

The ASP.NET engine processes server-side code, converts Web controls to HTML, and
sends the final page to the browser.

5) Discuss the significance of the @Page directive in an ASP.NET page and what attributes
it may contain.

@Page directive significance:

2
Specifies page settings like Language, CodeFile, and Inherits; it connects the HTML portion to its
server-side code and configures how the page runs.

You might also like