3
Answers

How To Pass RowLImit in CAMEL QUERY Dynamically

Akshay

Akshay

10y
806
1
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;
}
}
 
 
i want to use itemlimit dynamically . now i am passing it in camel query like:
 
SPQuery qry = new SPQuery();
qry.Query = "<Where>" +
"<IsNotNull>" +
"<FieldRef Name='Title' />" +
"</IsNotNull>" +
"</Where>"+
"<RowLimit>"+this.itemlimit+"</RowLimit>"; 
 
 
but its not working..........
 
 
 

Answers (3)