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 ShankerPosted Nov 8, 2014, 1:59 AM
Remove row limit from caml query and add as below
qry.RoWLimit=this.itemlimit;
Abhay ShankerPosted Nov 8, 2014, 12:39 PM
Also mark as accepted answer if its helpful to you
AkshayPosted Nov 8, 2014, 4:12 AM