string sTmp = ""; string sSearch = ""; //gets the value from the text box sSearch = txtSearch.Text; //hard coded sample give to me. it works. sTmp = "[contains(title, 'asp']"; //my attempt at passing the variable above to the sTmp variable. //I have tried several variations of this with no luck sTmp = "[contains(title, 'sSearch']"; UpdatePanel2.ContentTemplateContainer.Controls.Clear(); xmlDViewOne.DataFile = @"rss.xml"; xmlDViewOne.XPath = @"rss/channel/item " + sTmp; xmlDViewOne.DataBind(); dtlDisplay.DataSource = xmlDViewOne; dtlDisplay.DataBind();
sTmp = "[contains(title, '" + sSearch + "']";
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)