In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-14 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article is to share with you about the difference between IIS5 and IIS6.0 in ASP.NET. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
Since the advent of html and http, there have been browsers and Web servers, and there have been Web applications. The initial interaction pattern is as follows:
The model has worked well for many years. However, with the development of computer applications, people are more and more dissatisfied with pages with static content, and the need for some mechanism to dynamically generate code such as html becomes more and more urgent, so many technologies emerge as the times require, and ASP.NET is such a technology. In essence, ASP.NET is a technology that dynamically generates code recognized by browsers such as html, css, javascript on the server side. The interaction mode of ASP.NET is as follows:
As can be seen from the figure, ASP.NET must solve two major problems: one is how to interact with the Web server (generally referred to as IIS), and the other is how to generate different html code according to different requests.
* ASP.NET has different process modes and different interaction modes, depending on the version of IIS (5Magol 6.0 7.0). This problem is not discussed in this article. Generally speaking, you don't have to care about this problem, and if you want to understand it, you must be clear about the models of each version of IIS, and each version is different, so I'm not going to talk about it. If you are interested, you can search the relevant information on your own.
Let's discuss the second problem, and the first thing to say here is that because the IIS7.0 process pattern has changed a lot, I didn't understand the IIS7.0 model, so the following and future descriptions will only focus on IIS5 and IIS6.0. We have reason to think that the narration of IIS5 and IIS6.0 generally applies to IIS7.0.
First of all, let's click on the question, let's take a look at a code that asks the Jade Emperor to put the elephant in the refrigerator (why not God? Because my China is not under the control of God), please follow my train of thought first, don't worry.
UsingSystem
NamespaceConsoleApplication3
{
ClassProgram
{
StaticvoidMain (string [] args)
{
Emperoremperor=newEmperor ()
While (true)
{
Console.WriteLine ("first prepare an elephant and a refrigerator for the Jade Emperor.")
Console.WriteLine ("enter Elephant name:")
StringelephantName=Console.ReadLine ()
Console.WriteLine ("enter Elephant weight:")
IntintelephantWeight=int.Parse (Console.ReadLine ())
Console.WriteLine ("enter refrigerator name:")
StringrefrigeratorName=Console.ReadLine ()
Elephantelephant=newElephant ()
{
Name=elephantName
Weight=elephantWeight
}
Refrigeratorrefrigerator=newRefrigerator ()
{
Name=refrigeratorName
}
Contextcontext=newContext ()
{
Elephant=elephant
Refrigerator=refrigerator
}
Emperor.ProcessRequest (context)
Console.WriteLine ("do you want the Jade Emperor to keep keeping elephants in the fridge?")
Stringanswer=Console.ReadLine ()
If (answer== "n")
Break
}
}
}
ClassEmperor
{
PublicvoidProcessRequest (Contextcontext)
{
Elephantelephant=context.Elephant
Refrigeratorrefrigerator=context.Refrigerator
/ / step, open the refrigerator door
Refrigerator.IsOpen=true
Console.WriteLine ("the Jade Emperor opened the refrigerator door of {0}."
Refrigerator.Name))
/ / step two, put the elephant in.
Refrigerator.Content=elephant
Console.WriteLine ("the Jade Emperor put the elephant {0} in the refrigerator {1}."
Elephant.Name,refrigerator.Name))
/ / step 3, close the refrigerator door
Refrigerator.IsOpen=false
Console.WriteLine ("the Jade Emperor closed the refrigerator door of {0}."
Refrigerator.Name))
}
}
ClassElephant
{
PublicstringName {get;set;}
PublicintWeight {get;set;}
}
ClassRefrigerator
{
PublicstringName {get;set;}
PublicboolIsOpen {get;set;}
Privateobjectm_Content
PublicobjectContent
{
Get {returnthis.m_Content;}
Set
{
If (! this.IsOpen)
ThrownewInvalidOperationException ("the refrigerator door is not open to put things in.")
If (this.masks contentment contains null)
ThrownewInvalidOperationException ("there's something in the fridge and you can't put anything new in it.")
This.m_Content=value
}
}
}
ClassContext
{
PublicElephantElephant {get;set;}
PublicRefrigeratorRefrigerator {get;set;}
}
}
Thank you for reading! This is the end of the article on "what's the difference between ASP.NET 's IIS5 and IIS6.0". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!
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.