1. actionlessform. CS is used to rewrite form to process the original URL after PostBack sending.
Web. config Configuration
<Httpmodules>
<Add type = "ruonanxiao. config. modulerewriter, ruonanxiao. config" name = "modulerewriter. cs"/>
ProgramSet. Class Name, assembly name = file. CS
</Httpmodules>
<Configsections>
<Section name = "rnxrewirter" type = "ruonanxiao. config. rewriterconfigserializersectionhandler, ruonanxiao. config"/>
</Configsections>
Then write the ruonanxiao. config assembly.
You also need to set the ing of iis.html.
Click the Add button
Select. aspx for A. html extension path.
In this way, the new rule will take effect.
However, the original. HTML static file cannot be opened. What should I do with this change? You can solve the problem as follows.
1. Web. config
Add a configuration Node
<Httphandlers>
<! -- Set Application ing (the one to be added after URL rewriting) -->
<Add Path = "*. html" verb = "*" type = "system. Web. UI. pagehandlerfactory" Validate = "true"/>
</Httphandlers>
2. <compilation>
<! -- Set Application ing (the one to be added after URL rewriting) -->
<Buildproviders>
<Add extension = ". html" type = "system. Web. Compilation. pagebuildprovider"/>
</Buildproviders>
In this case, we can open the name of the original. html suffix...