in my web part i have propety
private int _itemlimit;
[WebBrowsable(true)]
[Personalizable(PersonalizationScope.Shared)]
[Category("Custom Properties")]
[WebDisplayName("Item Limit")]
public int itemlimit
{
get
{
return _itemlimit;
}
set
{
_itemlimit = value;
}
}
[WebBrowsable(true)]
[Personalizable(PersonalizationScope.Shared)]
[Category("Custom Properties")]
[WebDisplayName("Item Limit")]
public int itemlimit
{
get
{
return _itemlimit;
}
set
{
_itemlimit = value;
}
}
i want to use itemlimit dynamically . now i am passing it in camel query like:
SPQuery qry = new SPQuery();
qry.Query = "" +
"" +
" " +
" " +
" "+
""+this.itemlimit+" ";
qry.Query = "
"
"
"
"
"
but its not working..........

Abhay ShankerRank #375 · 6.7K reputationPosted Nov 7, 2014, 8:59 PM EST
Remove row limit from caml query and add as below
qry.RoWLimit=this.itemlimit;
Akshay82 reputationPosted Nov 7, 2014, 11:12 PM EST
Abhay ShankerRank #375 · 6.7K reputationPosted Nov 8, 2014, 7:39 AM EST
Also mark as accepted answer if its helpful to you