Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • James 251 posts 1169 karma points
    Jun 07, 2015 @ 16:00
    James
    0

    Checking if empty

    Hello,

     

    How can i check if the result of below is empty or <1 ?

    CurrentPage.Search(Request.QueryString["query"])

    Thanks and kind regards,

     

    J

  • TikTakToe 60 posts 102 karma points
    Jun 07, 2015 @ 16:15
    TikTakToe
    100

    CurrentPage.Search returns a collection, just use .Any()

    See:https://msdn.microsoft.com/en-us/library/vstudio/bb337697(v=vs.90).aspx

Please Sign in or register to post replies

Write your reply to:

Draft