You are here: COM Interface > Interfaces > ISearchResults Interface > ISearchResults::UrlEncodeItem Method
Close
dtSearch Text Retrieval Engine Programmer's Reference
ISearchResults::UrlEncodeItem Method
Syntax
IDL
HRESULT UrlEncodeItem([out, retval] BSTR * pVal);

UrlEncodeItem creates a url-encoded string describing the currently-selected item in search results.

The string returned from UrlEncodeItem can be inserted in an HTML link as part of the HREF. UrlDecodeItem can then be used to convert the string back into a search results item. For sample code demonstrating the use of these functions to implement efficient web-based searching, see the dtsearch.asp sample included with the dtSearch Engine. UrlEncodeItem and UrlDecodeItem only work with documents retrieved in an indexed search and cannot be used with the results of an unindexed search

Copyright (c) 1995-2021 dtSearch Corp. All rights reserved.