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: HOL.md
+10-4Lines changed: 10 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -600,15 +600,19 @@ In this section, you will enable unobtrusive validation in ASP.NET to compare th
600
600
601
601
> **Note:** You can also set this property in the "**Page_Load**" event in case you want to enable Unobtrusive Validation only for some pages.
602
602
603
-
1. Open the **Global.asax.cs** file and add the following using statement (shown in bold) (Code Snippet _- Web Forms Lab - Ex02 - Using statements)_
603
+
1. Open the **Global.asax.cs** file and add the following using statement (shown in bold)
604
+
605
+
(Code Snippet _- Web Forms Lab - Ex02 - Using statements)_
604
606
605
607
````C#
606
608
using System.Web.SessionState;
607
609
using WebFormsLab.Model;
608
610
using System.Web.ModelBinding;
609
611
````
610
612
611
-
1. Within the **Application_Start** method of the **Global.asax.cs** file, add the following code (Code Snippet _- Web Forms Lab - Ex02 - ScriptREsourceDefinition)_
613
+
1. Within the **Application_Start** method of the **Global.asax.cs** file, add the following code
614
+
615
+
(Code Snippet _- Web Forms Lab - Ex02 - ScriptResourceDefinition)_
612
616
613
617
````C#
614
618
ScriptResourceDefinition myScriptResDef = new ScriptResourceDefinition();
@@ -619,7 +623,9 @@ In this section, you will enable unobtrusive validation in ASP.NET to compare th
1. Open **Site.Master.** Add the code below to include a **ScriptManager** on the page to include a script reference to the jQuery client library. (Code Snippet - _Web Forms Lab - Ex01 - Script Manager_)
626
+
1. Open **Site.Master.** Add the code below to include a **ScriptManager** on the page to include a script reference to the jQuery client library.
@@ -666,7 +672,7 @@ ASP.NET 4.5 introduces data annotations validation for Web Forms. Instead of hav
666
672
667
673
1. Add data annotations to validate the Customer model class. Open **Customer.cs** class in the **Model** folder and _decorate_ each property using data annotation attributes.
668
674
669
-
(Code Snippet -_Web Forms Lab - Ex02 - Data Annotation_s)
675
+
(Code Snippet -_Web Forms Lab - Ex02 - Data Annotations_)
0 commit comments