Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

SPList.RenderAsHtml not working for Custom list created using VS 2010

$
0
0

Below code is not working for the list created using custom vs 2010 declarative way.

SPList list123=SPContext.Current.Web.GetList("/Lists/AC_MasterBundle");
//SPList list123 = SPContext.Current.Web.GetList("/Lists/TestList");

SPQuery query = new SPQuery(list123.DefaultView);

query.Query= "<OrderBy><FieldRef Name='Title' Ascending='True' /></OrderBy>";

string vv=list123.RenderAsHtml(query);

Response.Write(vv);



Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>