I am displaying an Rssfeed on my page by using XmlDataSource and Datalist controls.
I want the user to be able to limit the information that is returned to my datalist. To do this I have a textbox on the form that allows the user to enter their search criteria.
I need to be able to dynamically create a query string utilizing the information that the user entered in the textbox. I am also using a drop down list and allowing the user to select whether they want to search in the title, description, or all parts of the xml file.
I am having trouble figuring out how to reference the data contained in my textbox in my query string. Where the query string says 'asp', I want to replace 'asp' with the content from my sSearch variable. Can anyone tell me how to reference my variable in the query string???
string sSearch = txtSearch.Text;
string SQuery = "";
if (DropDownList2.SelectedIndex == 0)
SQuery = "[contains(title), 'asp')]";
View Complete Post