Book Image

SharePoint Designer Tutorial: Working with SharePoint Websites

By : Mike Poole
Book Image

SharePoint Designer Tutorial: Working with SharePoint Websites

By: Mike Poole

Overview of this book

Table of Contents (17 chapters)
SharePoint Designer Tutorial
Credits
About the Author
About the Reviewer
Preface
Index

Hard-Coding Results


When searching the site, notice how the keywords that we use are displayed in the address bar on the results page. For example, when we search for birthday, we see that the value birthday is displayed with the name k (for keyword) in the URL:

http://olmec/share/results.aspx?k=birthday

Why is this good to know? Well, it opens up the possibilities when it comes to providing users with pre-defined searches. If we would like to provide our users with a basic way of searching for chardonnay, we may hard-code the following URL into a link so that when the user clicks the link they are provided with chardonnay results:

http://olmec/share/results.aspx?k=chardonnay

This means that when we are displaying records in a grid view, we can program SharePoint to display the results of a field (e.g. wine type) as hyperlinks, which will use SharePoint Search to display the results.