Thursday, July 14, 2011

single quotes for a string in xslt when filtering list data in sharepoint

some times, we may come accross using xslt list view webpart for showing list content and also we may need to filter data based on some query string or some other data.

That data need to be embeded in single quotes ( ' ') to pass it as filter criteria. in such case there concatination of single quote and your required string wont work.

to fulfill this requirement, create a with value = " ' " (i.e., to store single quote)and make use of this variable + ur filter string for filter criteria of that xslt list view webpart.


i am sorry, i couldnt give u sample code. will update this post with sample code soon.

thank u
Raj

No comments:

Post a Comment