1. Can ASP.NET run in those systems?
Currently, ASP.NET can only run in Microsoft's Windows 2000, Windows XP and Windows 2003 systems, and require Microsoft Internet Information Server (IIS) support, Microsoft plans to make Windows NT4.0 also support ASP.NET However, it is possible that Microsoft is some technical issues or market considerations, and has not supported support from ASP.NET under NT.
2. Can I use more than one language in an ASPX file?
The answer makes you a little disappointment, although Microsoft provides a public language operating environment (CLR, Common Laguage Runtime), implements a close integration between multiple programming languages, allowing you to export the object needed to C # from a VB object. But only one language can be used in an ASPX file, just as you can't use the C #'s syntax in VB.NET.
3. Server-side scripts of the ASPX file support those languages?
Currently, the ASPX file only supports C #, Visual Basic.Net, JScript.net, and J #, but you can use a separate code file using code-behind (code separation), you can use any .NET compile support To achieve functionality.
4. Can Code-Behind (code separation) technology in the global.asax file?
Of course, it is, for example:
Global.asax:
Sub Application_Start (Byval E AS Object, Byval E As Eventargs)
Application ("Online_Session") = 0
End Sub
Sub session_start (Byval E AS Object, Byval E As Eventargs)
Application.lock ()
Application ("Online_Session") = CINT (Application ("Online_Session")) 1
Application.unlock ()
End Sub
Sub session_end (Byval E AS Object, ByVal E as Eventargs)
Application.lock ()
Application ("Online_Session") = CINT (Application ("Online_Session")) - 1
Application.unlock ()
End Sub
script>
And use Code-Behind technology
Global.asax:
<% @ Application Inherits = "MyApp"%>
MyApp.vb:
Imports system.Web
Imports System.Web.SessionState
Public class myapp
Sub Application_Start (Byval E AS Object, Byval E As Eventargs)
Application ("Online_Session") = 0
End Sub
Sub session_start (byval e AS Object, Byval E as Eventargs) Application.lock (), APPLICATION.LOCK ()
Application ("Online_Session") = CINT (Application ("Online_Session")) 1
Application.unlock ()
End Sub
Sub session_end (Byval E AS Object, ByVal E as Eventargs)
Application.lock ()
Application ("Online_Session") = CINT (Application ("Online_Session")) - 1
Application.unlock ()
End Sub
END CLASS
5. Can I see the code generated in the ASPX file in ASP.NET?
As you can see, when you have <% @ page debug = "true"%> command or Web.config, you can declare
6, how to comment in the ASPX file?
Like the method in the ASP file.
<%
Response.write "test!"
-%>
7. Can there be more than one server-side FORM mark in the ASPX file?
Cannot
8. Can I use custom data types in a web form?
Yes, you can put the DLL file containing the custom data type in the bin directory under the program root directory, and the ASP.NET loads the DLL file when the data type is referenced.
9. Can I trigger those events in the global.asax file?
The event triggered when the Application object is created and ended.
* Application_Start
* Application_end
The event triggered when the session object is created and ended
* Session_start
* Session_end
Events triggered when the program is requested (in the order of occurrence)
* Application_BeginRequest
* Application_AuthenticateRequest
* Application_AuthorizeRequest
* Application_ResolveRequestCache
* Application_AcquireRequestState
* Application_PreRequestHandleRexecute
* Application_PostRequestHandleRexecute
* Application_ReleaseRequestState
* Application_UpdateRequestCache
* Application_ENDREQUEST
When there is a program that has an error, the event triggered
* Application_ERROR
* Application_Disposed
10. Whether the web control supports the style sheet (CSS)?
Yes. All Web controls inherit a property named CssClass from the base class System.Web.UI.WebControls.WebControl. The following example defines a CSS class named Input and uses it to modify a TextBox control to display text in red 10-point Verdana TYPE: Support, all web controls inherit a property called CssClass from the base class system.web.ui.webcontrols.webcontrol.
E.g:
.Input {font:
10PT
Verdana; color: red;
style>
hEAD>