KW Master's standard answer (nor standards, some of his own ideas, and because it was Beta1, there are some different, such as XS

Source: Internet
Author: User
Tags config iis
1. Which important interface is the Page class implementing?

A:ihttphandler
I thought I knew. NET class, interface important ...


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

A:foo_aspx
Extension question: How to dynamically use a program (programmatically) to refer to a user control?
Do you have anything to be aware of?
Don't tell me that MSDN Beta 1 has. You'll know it's nonsense when you compile it.

3. Where does the shadow-copy DLL exist?

A:
Consider, if there is not a mechanism (now we call it shadow-copy),
Can we delete/change the DLL that is being used?
For example, in a VB6+IIS+ASP+MTS environment, the number of times you need to restart IIS service or reboot ...

4. Talk about AutoEventWireup

A:
Who found out that some of the events they wrote were executed two times? ;)

5. About the Inherits in directive: Can an ASPX Inherits multiple classes?
Can multiple page inherits a code behind?

A:
You cannot inherit multiple in C #.
But many different aspx can certainly share a code behind----even if the page's server control is not the same.

6. What is the relationship between the @Assembly and the CSC/R and vs.net projects reference?
A:
People who need to use both the IDE and the manual compilation are best known. ;-(

7. Is there a difference between Web control and HTML control on performance?
A:
The document always says Beta1 refuses performance test;-)

8. Which ISAPI extension handles distribution of ASP.net requests?
A:
Xspisapi.dll in the IIS MMC
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:
Xspwp.exe

10 What is this process if you use an external process to maintain session?
A:
Aspstate.exe
Modify the settings inside the Config.web to place the session on other machines, even in SQL.
This allows the Web farm to be supported directly.
But if the session variable is object, there will be a serialize process that consumes resources.
How to get your object to better support Serializable interface is a big topic,
It's really hard to say.

11 How do you make a httphandler yourself? Can you think of any practical use for it?
A:
Implementing IHttpHandler to make your own handler is simple, but useful, such as when a user requests a
Special files, such as *.log, you can set in Config.web to your own handler,
Let it do the processing.


12 Talk about HttpModule
A:
Extension of question 11

13 How to debug asp.net application in vs.net?
A:
Attach Process

14 If you write a Custom control by inheriting System.Web.UI.Control,
How do I add support for client-side script?
A:
There's nothing to say.

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:
Yes. Through Page.controls, or form.controls, or container.controls whatever ...
So you can make a completely different web Ui,share a common code behind,
Make a real generic




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.