Some problems are not necessary to take the beta1 question to ask, on behalf of the question of KW

Source: Internet
Author: User
Question 1. What important interface is the Page class implementing?

A:
public class Page:templatecontrol, IHttpHandler


2. What is the class name after the foo.aspx is compiled?

A:foo_aspx

3. Where does the shadow-copy DLL exist?
A:
Of course not, if you delete the DLL after the first compilation it's The.

4. Talk about AutoEventWireup
A:
The AutoEventWireup property is used to control whether the page framework is allowed to automatically invoke the Page_Init and Page_Load methods, and by default is true.

5. About the Inherits in directive: Can an ASPX Inherits multiple classes?
Can multiple page inherits a code behind?
A:
An aspx leaf is a class, do you say you can inherit multiple parent classes in C #? :)

6. What is the relationship between the @Assembly and the CSC/R and vs.net projects reference?
A:
The's approach

7. Is there a difference between Web control and HTML control on performance?
A:
To be honest, Web control has no difference in performance from HTML control, and perhaps less, but its Programmability event model is unmatched.

8. Which ISAPI extension handles distribution of ASP.net requests?
A:
If you have written the inheritance of the IHttpHandler, know these will be useful.

9. What process does this ISAPI extension actually forword the request to?
A:
aspnet_wp.exe

10 What is this process if you use an external process to maintain session?
A:
Aspstate.exe
There are 3 ways to maintain sessions.

11 How do you make a httphandler yourself? Can you think of any practical use for it?
A:
Webserver

12 Talk about HttpModule
A:
Extension of question 11

13 How to debug asp.net application in vs.net?
A:
Break point

14 If you write a Custom control by inheriting System.Web.UI.Control,
How do I add support for client-side script?
A:
The Page.registerclientscriptblock in the BEAT2 was abandoned.
For example, in a <asp:button> want to add a client script event:
BUTTON1.ATTRIBUTES.ADD ("onclick", "alert (' JAVASCRITP script for Client ')");

15 in the ASPX page, put some TextBox, ListBox and so on Web control,
But they are not defined in Code-behind, is it possible to use these control?
A:
Of course, you can take a closer look at the protected type of member variables that vs.net produces:
protected System.Web.UI.WebControls.Button Button1;

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.