Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
3
Answers
How To Pass RowLImit in CAMEL QUERY Dynamically
Akshay
10y
807
1
Reply
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..........
Post
Reset
Cancel
Answers (
3
)
Next Recommended Forum
error:Object reference not set to an instance of an object.
How to Display Workflow History Graphical Representation?