Click here to Skip to main content
15,885,914 members
Articles / Web Development / HTML

Expose the iTunes Library via XML, ASP.NET, and AJAX

Rate me:
Please Sign up or sign in to vote.
4.26/5 (9 votes)
24 Oct 20067 min read 80.5K   459   45  
An article on exposing the iTunes Library via XML, ASP.NET, and AJAX.
  • ituneslibrary_article_src.zip
    • image002.jpg
    • image004.jpg
    • image006.jpg
    • MusicServer
      • About.aspx
      • About.aspx.vb
      • Admin
      • App_Code
      • App_Data
      • App_Themes
        • Black
          • Default.css
          • Default.skin
          • frame.css
          • Images
            • album-bstretch.gif
            • album-l1.gif
            • album-l2.gif
            • album-l3.gif
            • album-l4.gif
            • album-lstretch.gif
            • album-mbl.gif
            • album-mbr.gif
            • album-mtl.gif
            • album-mtr.gif
            • album-r1.gif
            • album-r2.gif
            • album-r3.gif
            • album-r4.gif
            • album-rstretch.gif
            • album-tstretch.gif
            • background.gif
            • bullet-1.gif
            • bullet-2.gif
            • button-add.gif
            • button-cancel.gif
            • button-create.gif
            • button-delete.gif
            • button-download.gif
            • button-dwn_res.gif
            • button-edit.gif
            • button-first.jpg
            • button-gallery.jpg
            • button-import.gif
            • button-insert.gif
            • button-last.jpg
            • button-login.gif
            • button-next.jpg
            • button-play.jpg
            • button-prev.jpg
            • button-rename.gif
            • button-save.gif
            • button-tog24.jpg
            • button-tog8.jpg
            • footer.gif
            • frame-botx--.gif
            • frame-bot-x-.gif
            • frame-bot--x.gif
            • frame-midx--.gif
            • frame-mid--x.gif
            • frame-topx--.gif
            • frame-top-x-.gif
            • frame-top--x.gif
            • header.gif
            • photonav.gif
            • spacer.gif
        • White
          • Default.css
          • Default.skin
          • Frame.css
          • Frame.css.exclude
          • Images
            • album-bstretch.gif
            • album-l1.gif
            • album-l2.gif
            • album-l3.gif
            • album-l4.gif
            • album-lstretch.gif
            • album-mbl.gif
            • album-mbr.gif
            • album-mtl.gif
            • album-mtr.gif
            • album-r1.gif
            • album-r2.gif
            • album-r3.gif
            • album-r4.gif
            • album-rstretch.gif
            • album-tstretch.gif
            • background.gif
            • bodybackground.GIF
            • body-repeat.gif
            • body-repeat-photo.gif
            • bullet-1.gif
            • bullet-2.gif
            • button-add.gif
            • button-cancel.gif
            • button-create.gif
            • button-delete.gif
            • button-download.gif
            • button-dwn_res.gif
            • button-edit.gif
            • button-first.gif
            • button-gallery.gif
            • button-import.gif
            • button-insert.gif
            • button-last.gif
            • button-login.gif
            • button-next.gif
            • button-play.gif
            • button-prev.gif
            • button-rename.gif
            • button-save.gif
            • button-tog24.gif
            • button-tog8.gif
            • content-shim.gif
            • content-shim-none.gif
            • content-shim-photo.gif
            • content-shim-stretch.gif
            • footer.gif
            • footer-side.gif
            • frame-botx--.gif
            • frame-bot-x-.gif
            • frame-bot--x.gif
            • frame-midx--.gif
            • frame-mid--x.gif
            • frame-topx--.gif
            • frame-top-x-.gif
            • frame-top--x.gif
            • header.gif
            • photonav-bg.gif
            • photonav-top-bg.gif
            • spacer.gif
      • AutoCompleteServices.asmx
      • Bin
        • App_Licenses.dll
        • BMR.Common.Framework.XMLTools.dll
        • BMR.Common.Framework.XMLTools.dll.refresh
        • Microsoft.Web.Atlas.dll
        • Microsoft.Web.Atlas.dll.refresh
      • CustomError.aspx
      • CustomError.aspx.vb
      • Default.aspx
      • Default.aspx.vb
      • Default.master
      • Default.master.vb
      • Global.asax
      • Handler.ashx
      • Images
        • icon-save.gif
        • placeholder-100.jpg
        • placeholder-200.jpg
        • placeholder-600.jpg
        • resume-photo.jpg
        • spinner.gif
      • iTunes Music Library.xml
      • LibraryTree.xsl
      • licenses.licx
      • MyAccount.aspx
      • MyAccount.aspx.vb
      • Register.aspx
      • Register.aspx.vb
      • Upload
      • web.config
      • web.sitemap
/* 0 BASIC TAGS */

table {
	font-size: 1em;
}
td {
	text-align: left;
	vertical-align: top;
	font-family:Tahoma;
	font-size:12px;
	color:#806C59;
}


h1, h2, h3, h4 {
	margin: 0;
	font-family: tahoma, arial, helvetica, sans-serif;
}

p {
	line-height: 1.4em;
}

hr {
	border: 0;
	border-top: 1px solid #bababa;
	height: 1px;
}

a {
	text-decoration: none;
	color: #d32525;
}

a:visited {
	color: #980000;
}

a:hover {
	text-decoration: underline;
	color: #e05252;
}

a:active {
	color: #980000;
}

body {
	background-image: url(images/background.gif);
	background-repeat: repeat-x;
	margin: 0;
	padding: 0;
	text-align: center;
	font-family: verdana, arial, helvetica, sans-serif;
	font-size: 0.7em;
	
}

img {
	border-width: 0;
}

/* 1 HEADER */

.header {
	background-image: url(Images/header.gif);
	background-repeat: no-repeat;
	position: relative;
	width: 760px;
	height: 81px;
	margin-left: auto;
	margin-right: auto;
}

h1 {
	position: absolute;
	left: 37px;
	top: 12px;
	font-size: 18px;
}

h2 {
	position: absolute;
	left: 37px;
	top: 60px;
	font-size: 11px;
}

.menua {
	position: absolute;
	right: 37px;
	top: 17px;
	text-transform: uppercase;
	font-size: 10px;
}

.nav {
	position: absolute;
	right: 37px;
	top: 60px;
	text-transform: uppercase;
	font-size: 10px;
}

.menua a:visited, .nav a:visited {
	color: #d32525;
}

/* 1.1 SHIM */

.shim {
	background-repeat: no-repeat;
	margin-left: auto;
	margin-right: auto;
	width: 760px;
	height: 8px;
	font-size: 0;
}

.column {
	background-image: url(images/content-shim.gif);
}

.gradient {
	background-image: url(images/content-shim-photo.gif);
}

.solid {
	background-image: url(images/content-shim-none.gif);
}

/* 2 PAGE */

.page {
	background-repeat: repeat-y;
	margin-left: auto;
	margin-right: auto;
	text-align: left;
}

h3 {
	margin-top: 1.0em;
	margin-bottom: 1.12em;
	font-size: 1.5em;
	font-weight: bold;
}
h4 {
	margin-top: 1.0em;
	margin-bottom: 1.12em;
	font-size: 1.3em;
	font-weight: bold;
}

/* 2.1 HOME, RESUME, LINKS, REGISTER, ADMIN/ALBUMS, ADMIN/PHOTOS PAGES */

#home {
	background-image: url(images/body-repeat.gif);
	position: relative;
	width: 686px;
	padding: 0px 37px;
	padding-top: 1px; /* Weird Mozilla Bug */
	padding-bottom: 40px; /* Weird Mozilla Bug */
}

#sidebar {
	float: left;
	width: 100px;
	height: 100%;
}

#content {
	margin-left: 2px;
	position:relative;
}

#whatsnew {
	float: left;
	width: 200px;
	height: 100%;
}


dl {
	margin-top: 0;
	margin-bottom: 0;
	border-top: 1px solid #bababa;
	padding-top: 1.5em;
	padding-bottom: 1.5em;
	position: relative;
}

dt {
	position: absolute;
	left: 0;
}

dd {
	margin-left: 150px;
	height: 2.0em;
}

.emptydata td {
	padding: 50px;
	color: #aeaeae;
}

/* 2.2 ALBUMS PAGE */
.buttonbar {
	background-image: url(images/photonav-bg.gif);
	background-repeat: repeat-x;
	margin-left: auto;
	margin-right: auto;
	padding-top: 4px;
	width: 744px;
	height: 33px;
	text-align: center;
}

.buttonbar-top {
	background-image: url(images/photonav-top-bg.gif);
}

.button
{
	background-color:white;
	color:#d32525;
}
	
#photos .view, #admin-details .view {
	margin-top: 20px;
	margin-bottom: 20px;
}

/* 3 FOOTER */

.footerbg {
	background-image: url(images/footer-side.gif);
	background-repeat: repeat-x;
	width: auto;
	height: 75px;
	text-align: center;
}
.footer {
	background-image: url(images/footer.gif);
	background-repeat: no-repeat;
	margin-left: auto;
	margin-right: auto;
	width: 760px;
	height: 75px;
	text-align: center;
	font-size: 10px;
}

.menub {
	margin: 12px auto 5px auto;
	text-transform: uppercase;
	font-size: 10px;
}

.menub a:visited {
	color: #d32525;
}


/* Menu control that looks like a tab strip */
.tab, .tabItem
{
 font-family:Verdana,Arial,Helvetica;
 font-size: 8pt;
 font-weight:normal; 
 text-decoration: none;
}
.tab 
{
 padding: 15px  1px 0px 0px;
 text-align: left;
}
.tab a:link, .tab a:visited, .tab a:hover
{
 text-decoration: none;
 color:#333333;
}
.tabPage   /* If the area beneath the tab strip needs to have a box defined, use this style in the <td> */
{  
  background-color: #F7F6F3;
  font-size: x-small;
  border-left: 1px solid black;
  border-bottom: 1px solid black;
  border-right: 1px solid black;

}

.subSectionBody
{
	background:white;
	border-color:Black;
	border-style:solid;
	border-width:1px;
	
}

.subSectionHeader
{
	background-color:AppWorkspace;
    color:White;
     font-style:italic;
     font-weight:bold;
}

.tabItem  
{
 border-color: Black;
 border-width: 1px;
 border-style:solid;
 border-bottom-color:Gainsboro;
 background-color: Gainsboro;
 color: Black;
 text-align: center;
 height:25px;
 font-size: x-small;
 width:100px

}
.tabSelected  
{
 border-top-color:Black;
 border-left-color:Black;
 border-right-color:Black;
 border-bottom-color:Gainsboro;
 border-width:1px;
 background-color: #F7F6F3;
 font-weight:bold;
 font-size: x-small;


}
.tabHover 
{
  background-color:LightSteelBlue;
  font-size: x-small;
}

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
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions