Friday, March 7, 2008

RSS Feed as parameter XmlDataSource datafield as variable

Sample ASPX Using a Gallery Dropdown





And the Code Behind (C#)protected void Page_Load(object sender, EventArgs e)

protected void Page_Load(object sender, EventArgs e)
{
string rssURL;
string URLID;
// URLID = ddlURL.SelectedValue.ToString();
URLID = Request["URLID"];
rssURL = "http://xml-us.amznxslt.com/onca/xml3?t=wwwvislicom-20&dev-t=16ND0GSSVYMWG9M8ECG2&KeywordSearch=" + URLID + "&mode=electronics&bcm=&type=lite&page=1&ct=text%2Fxml&sort=%20salesrank&f=http%3A%2F%2Fxml.amazon.com%2Fxsl%2Fxml-rss091.xsl";
{
xmlDS.DataFile = rssURL;
dlSearch.DataSource = xmlDS;
dlSearch.DataBind();
}


}

SmugMug (DigitalColony.com)

No comments: