strValue = "Something is here."
<%if IsNull(strValue)="True"then%>
No data is available for this query.
Please try another query.
<%else%>
<%=strValue%>
<%end if%>
In this code, we will check whether the data exists; if it does, we will display it; if it does not, we will display a notice to the user.