Reputation: 9417
I am trying to set variable if url contains text "verification"
<set-variable name="pathQuery" value="@(context.Request.Url.Contains("verification"))" />
I get the following error
Error in element 'set-variable' on line 16, column 10: 'IUrl' does not contain a definition for 'Contains' and the best extension method overload 'Queryable.Contains(IQueryable, string)' requires a receiver of type 'IQueryable'
How do I set this?
Upvotes: 0
Views: 3455