In fact, the so-called pseudo-static page refers to URL rewriting, which is very simple to implement in ASP. NET. The following is a simple process that experts do not need to read.
First, you need to reference two DLL files in your project:
Actionlessform. dll
Urlrewriter. dll
Which of the following is true? Urlrewriter. dll, but if you want to implement paging, you must use this actionlessform. dll
First, write in Web. config <? XML version = "1.0" encoding = "UTF-8" ?>
< Configuration >
< Configsections >
< Section Name = "Rewriterconfig" Type = "Urlrewriter. config. rewriterconfigserializersectionhandler, urlrewriter" />
</ Configsections >
< Rewriterconfig >
< Rules >
<! -- Rules for Blog content Displayer -->
< Rewriterrule >
< Lookfor > ~ /Read (. [0-9] *) \. html </ Lookfor >
< Sendto > ~ /Webform1.aspx? Userid = $1 < Ndto >
</ Rewriterrule >
</ Rules >
</ Rewriterconfig >
< Appsettings >
< Add Key = "Dbtype" Value = "SQL" > </ Add >
< Add Key = "Data" Value = "Server =.; uid = sa; Pwd = sa; database = pubs; Connect timeout = 30 ;" > </ Add >
</ Appsettings >
< System . Web >
< Httphandlers >
< Add Verb = "*" Path = "*. Aspx" Type = "Urlrewriter. rewriterfactoryhandler, urlrewriter" />
< Add Verb = "*" Path = "*. Html" Type = "Urlrewriter. rewriterfactoryhandler, urlrewriter" />
</ Httphandlers >
in this case, the domain name is suffixed in iis.html (I don't know how to name it ...)
perform the following operations:
right-click my computer --> Manage --> Expand 'service and application Program '--> Internet Information Service --> Find your shared directory --> right-click Properties --> click 'configuration' -->
ing below --> Find. aspx executable file path copy path --> paste path --> the extension is ". html "--> then remove the check object check box.