In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article introduces the relevant knowledge of "what are the novice problems in ASP.NET?". In the operation of actual cases, many people will encounter such a dilemma. Then let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
ASP.NET novice question 1, about the difference between ref and out
Initialization is required when the ref parameter is passed in
You don't need to initialize the out parameter when it comes in, but you need to make sure that a valid reference is generated when it comes out.
ASP.NET novice question 2, what's the difference between running on the heap and running on the stack?
Large objects such as classes and references are allocated on the heap, while value types are assigned on the stack, which is efficient. Each process has its own stack space, and c # automatically frees up stack space when you exit the process. The heap is managed by the garbage collector
The difference between ASP.NET Novice question 3 Frameset and iframe
Frameset is a frame, a web page is divided into several blocks, each block is a different web page file. Iframe is an embedded web page that can be embedded anywhere on a page. Generally speaking, the use of iframe is more flexible.
ASP.NET novice question 4 the difference between wsprintf, wsprintf and printf
Sprintf is used to print ANSI character set
Wsprintf is used to print UNICODE character set
Printf outputs to standard devices, that is, display STDOUT
ASP.NET novice problem 5 the difference between response.redirect and Server. Transfer
Server.Transfer: use a server-side method to redirect the user to another page.
In this scenario, the server simply transfers the context to another page. The advantage is that you can share page context information between pages. The disadvantage is that the user's browser does not know that it is transmitting, so it does not update the browser's history. If the user refreshes this page, unexpected results may occur.
Response.Redirect: redirects the user from the browser to another page.
In this scenario, a command is sent to the user's browser so that the browser gets another page. Its advantage is to update the history of the browser. The disadvantage is that this scenario performs an additional round trip, which affects performance.
ASP.NET novice question 6. The difference between response.write and RegisterStartupScript
Page.RegisterClientScriptBlock
The script will be placed next to "
< /form>"
In front of.
Page.RegisterStartupScript
The script will be placed immediately after the next few hidden input.
ASP.NET novice question 7 the difference between class and struct
Structure is a value type, and class is a reference type.
All structure types implicitly inherit from the class System.valueType.
Assigning a value to a structure type variable means that a "copy" of the assigned value will be created.
The default values for a structure are calculated as follows: all value type fields are set to their default values, and all reference type fields are set to null, resulting in default values for the structure.
Use boxing and unboxing operations to convert between structure types and object.
For structure, the meaning of this is different.
In a structure, the instance field declaration cannot contain a variable initializer.
You cannot declare an instance constructor without parameters in a structure.
Destructors cannot be declared in a structure.
This is the end of the content of "what are the novice ASP.NET questions?" Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.