Writing Alphabets loop from A to Z in ASP.Net

for (char ch = 'A'; ch < 'Z'; ch++)
{
writer.WriteStartElement("url");
writer.WriteElementString("loc", "http://www.infoa2z.com/boy-name-start-by-" + ch + "");
writer.WriteElementString("lastmod", String.Format("{0:yyyy-MM-dd}", DateTime.Now));
writer.WriteElementString("changefreq", "daily");
writer.WriteElementString("priority", "0.8");
writer.WriteEndElement();
}

Related Alrticles

FREE!!! Registration