Quantcast
Channel: DevNet Questions
Viewing all articles
Browse latest Browse all 8901

If condition in repeater's where clause throwing error

$
0
0
Hi, I am trying the following in Where condition inside Repeater web part but getting error: Message: Invalid SQL query in property @wherecondition@. {% if (QueryString.GetValue(@key@, @@)!=@@) { string.FormatString(@(VideoTitle LIKE '%{0}%' OR Description LIKE '%{0}%')@, SQLEscape(QueryString.GetValue(@key@, @@)))|(handlesqlinjection)false } #%} When I check the macro in Debug,I didnt see any error and found the proper value in result column.If I remove the If condition then it is working fine. Could anyone please tell me what am I missing in the where clause?Thanks.

Viewing all articles
Browse latest Browse all 8901

Trending Articles