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']";
xmlDViewOne.DataFile = @"rss.xml";
xmlDViewOne.XPath = @"rss/channel/item " + sTmp;
dtlDisplay.DataSource = xmlDViewOne;
sTmp = "[contains(title, '" + sSearch + "']";
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)