You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/search/tutorial-csharp-paging.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -423,15 +423,15 @@ This variable is a string, which holds "next" if the next page of results should
423
423
{
424
424
return3;
425
425
}
426
-
}
426
+
}
427
427
}
428
428
```
429
429
430
430
### Add a vertical scroll bar to the view
431
431
432
432
1. Locate the section of the index.cshtml file that displays the results (it starts with the **@if (Model != null)**).
433
433
434
-
1. Replace the section with the code below. The new **<div>** section is around the area that should be scrollable and adds both an **overflow-y** attribute and a call to an **onscroll** function called "scrolled()" (or any name you want to give it), like so.
434
+
1. Replace the section with the code below. The new **<div>** section is around the area that should be scrollable, and adds both an **overflow-y** attribute and a call to an **onscroll** function called "scrolled()", like so.
435
435
436
436
```cs
437
437
@if (Model!=null)
@@ -454,7 +454,7 @@ This variable is a string, which holds "next" if the next page of results should
454
454
}
455
455
```
456
456
457
-
3. Directly underneath the loop, after the </div> tag, add the scroll function.
457
+
3. Directly underneath the loop, after the </div> tag, add the **scrolled** function.
Copy file name to clipboardExpand all lines: articles/search/tutorial-csharp-type-ahead-and-suggestions.md
+34-39Lines changed: 34 additions & 39 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,7 +59,7 @@ We have connected this script to the search box via the same id. Also, a minimum
59
59
60
60
The autocomplete function called in the script above is not something we have to write ourselves as it is available in the jquery library.
61
61
62
-
1. To access the jquery library, add the following lines to the top of the <head> section of the view file, so the beginning of this section looks similar to the following code.
62
+
1. To access the jquery library, change the <head> section of the view file to the following code.
63
63
64
64
```cs
65
65
<head>
@@ -69,6 +69,8 @@ The autocomplete function called in the script above is not something we have to
@@ -147,7 +146,7 @@ If you are interested, the [Lucene query syntax in Azure Search](https://docs.mi
147
146
148
147
We can improve the appearance of the suggestions to the user a bit, by setting the **highlights** parameter to true. However, first we need to add some code to the view to display the bolded text.
149
148
150
-
1. In the view (index.cshtml), add the following script (no need to delete the **azureautosuggest** script, as we are using different ids) after the script you entered above.
149
+
1. In the view (index.cshtml), add the following script after the **azureautosuggest** script you entered above.
151
150
152
151
```cs
153
152
<script>
@@ -184,16 +183,15 @@ We can improve the appearance of the suggestions to the user a bit, by setting t
Oneofthequestionsadeveloperneedstoansweris when is a script working "well enough" and when should its quirks be addressed. We will not be taking highlighting any further in this tutorial, but finding a precise algorithm is something to consider if taking highlighting further.
0 commit comments