SRFSyntax Sample: Server Response File Demonstration
Demonstrates how to use attributed code to implement an ATL Server request handler that illustrates advanced features of server response files.
The SRFSyntax sample illustrates how to:
Associate replacement methods with replacement tags using the tag_name attribute.
Parse replacement tag parameters and handle them in a replacement method.
Include one SRF file in another using the include tag.
This sample code is provided to illustrate a concept and should not be used in applications or Web sites, as it may not illustrate the safest coding practices. Microsoft assumes no liability for incidental or consequential damages should the sample code be used for purposes other than as intended.
Building and Running the Sample
To build and run this sample
Open the solution file, SRFSyntaxSample.sln, in the Visual Studio development environment.
Build the solution. This will also deploy the solution to the local Web server.
Use a Web browser to view http://localhost/srfsyntaxsample/srfsyntax.srf.