I am trying to get the Values from two Lists what have i dont wrong? i dont get any errors the site is only updating nothing more just like it dont fel that i press the button
protected void Button1_Click(object sender, EventArgs e)
{
try
{
if (DropDownListFeeds.SelectedValue=="0")
{
SPWeb web = SPContext.Current.Web;
SPSiteDataQuery query = new SPSiteDataQuery();
query.Lists =
"<Lists><List ID=\"98B914FA%2DA714-44DB-9A44%2D80ADE288F18E\"/><List ID=\"D1E0691B-33E3%2D49EF%2DA0B9-F96C1F166AFD\"/></Lists>";
query.Query =
string.Format("<OrderBy><FieldRef Name='Modified' Ascending='FALSE'></FieldRef></OrderBy>");
query.Webs = "<Webs Scope=\"SiteCollection\" />";
query.RowLimit = 10;
DataTable dataTable = web.GetSiteData(query);
Repeater2.DataSource = dataTable;
Repeater2.DataBind();
}
}
catch (Exception x)
{
Label1.Text = x.Message;
}