Click here to Skip to main content
15,891,852 members
Articles / Web Development / ASP.NET

Simple Sitemaps in ASP.NET

Rate me:
Please Sign up or sign in to vote.
4.62/5 (7 votes)
21 Apr 20074 min read 98.3K   2.1K   61  
Easiest way to create sitemaps for Google, Yahoo, and Ask. Provides a simple class which implements an XML sitemap file and the search engine ping.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ping.aspx.cs" Inherits="ping" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <span style="font-size: 10pt; font-family: Verdana"><strong>It worked!</strong><br />
            <br />
            Okay, maybe there isn't a lot to show here. Best thing to do is to open up the project
            in visual studio and step through the code. I'm too lazy to write some UI for this,
            because most people will just script this part.<br />
            <br />
            <a href="Default.aspx">&lt;&lt; Back</a></span></div>
    </form>
</body>
</html>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Marketing
United States United States
Hello, I have been working in various aspects of web technology since my first web dev job in 1997, doing PERL and CGI. Since then I have worked in Java, C++/CGI (no, really), Systems Administration, Systems Architecture, and finally moved into Marketing for Microsoft's Live Search.

You can also find me at my blog: nathanbuggia.com

Comments and Discussions