Presentation is loading. Please wait.

Presentation is loading. Please wait.

Murach's ASP.NET 4.5/C#, C2© 2013, Mike Murach & Associates, Inc.Slide 1.

Similar presentations


Presentation on theme: "Murach's ASP.NET 4.5/C#, C2© 2013, Mike Murach & Associates, Inc.Slide 1."— Presentation transcript:

1 Murach's ASP.NET 4.5/C#, C2© 2013, Mike Murach & Associates, Inc.Slide 1

2 Murach's ASP.NET 4.5/C#, C2© 2013, Mike Murach & Associates, Inc. Slide 2

3 Murach's ASP.NET 4.5/C#, C2© 2013, Mike Murach & Associates, Inc. Slide 3

4 Murach's ASP.NET 4.5/C#, C2© 2013, Mike Murach & Associates, Inc. Slide 4 Web form sites are easier to develop. They are used in this book. Development & coding are the same for sites & applications.

5 Create New Web Site Murach's ASP.NET 4.5/C#, C2© 2013, Mike Murach & Associates, Inc. Slide 5 Start Visual Studio File > New > Web Site

6 Murach's ASP.NET 4.5/C#, C2© 2013, Mike Murach & Associates, Inc. Slide 6

7 Murach's ASP.NET 4.5/C#, C2© 2013, Mike Murach & Associates, Inc. Slide 7 Folder location & contents

8 Murach's ASP.NET 4.5/C#, C2© 2013, Mike Murach & Associates, Inc. Slide 8 Adding forms to site Use menu WEBSITE  Add New Item command. –Add a Web Form template OR Right-click in Solution Explorer –Choose Add  Add New Item –Choose Add  Web Form from solution explorer shortcut menu Enter name for form or leave it as Default.aspx, Check Place Code in Separate File box, Click the Add button.

9 Murach's ASP.NET 4.5/C#, C2© 2013, Mike Murach & Associates, Inc. Slide 9

10 Add Existing Item Murach's ASP.NET 4.5/C#, C2© 2013, Mike Murach & Associates, Inc. Slide 10 Use Add  Existing Item Locate the form to add Click Add Code and form are copied

11 Open a website from inside Visual Studio Murach's ASP.NET 4.5/C#, C2© 2013, Mike Murach & Associates, Inc. Slide 11 File  Open  Website

12 Browse for Project Murach's ASP.NET 4.5/C#, C2© 2013, Mike Murach & Associates, Inc. Slide 12 Visual Studio has Project and Website folders Open the Project folder to find your site folder Add entire folder to Visual Studio

13 Murach's ASP.NET 4.5/C#, C2© 2013, Mike Murach & Associates, Inc. Slide 13

14 Add a New Folder to Project Murach's ASP.NET 4.5/C#, C2© 2013, Mike Murach & Associates, Inc. Slide 14 Right click solution explorer Choose Add  New Folder Rename folder

15 Murach's ASP.NET 4.5/C#, C2© 2013, Mike Murach & Associates, Inc. Slide 15 1 2 3

16 Murach's ASP.NET 4.5/C#, C2© 2013, Mike Murach & Associates, Inc. Slide 16

17 Murach's ASP.NET 4.5/C#, C2© 2013, Mike Murach & Associates, Inc. Slide 17

18 Murach's ASP.NET 4.5/C#, C2© 2013, Mike Murach & Associates, Inc. Slide 18

19 Working with tables Murach's ASP.NET 4.5/C#, C2© 2013, Mike Murach & Associates, Inc. Slide 19 Add Table –Use Table  Insert Table Set number of rows & columns you want. Resize a row - drag its bottom border. Resize a column - drag its right border. Resize entire table - drag one of its handles. Type text into the cells of the table. Use Formatting toolbar or Format menu to change text

20 Murach's ASP.NET 4.5/C#, C2© 2013, Mike Murach & Associates, Inc. Slide 20

21 Murach's ASP.NET 4.5/C#, C2© 2013, Mike Murach & Associates, Inc. Slide 21

22 Murach's ASP.NET 4.5/C#, C2© 2013, Mike Murach & Associates, Inc. Slide 22

23 Murach's ASP.NET 4.5/C#, C2© 2013, Mike Murach & Associates, Inc. Slide 23

24 Murach's ASP.NET 4.5/C#, C2© 2013, Mike Murach & Associates, Inc. Slide 24

25 Murach's ASP.NET 4.5/C#, C2© 2013, Mike Murach & Associates, Inc. Slide 25 Required field validatorsRange validators

26 Murach's ASP.NET 4.5/C#, C2© 2013, Mike Murach & Associates, Inc. Slide 26 Working with Validation controls

27 Murach's ASP.NET 4.5/C#, C2© 2013, Mike Murach & Associates, Inc. Slide 27

28 Murach's ASP.NET 4.5/C#, C2© 2013, Mike Murach & Associates, Inc. Slide 28 Type of control

29 Murach's ASP.NET 4.5/C#, C2© 2013, Mike Murach & Associates, Inc. Slide 29 Webforms jQuery library - Unobtrusive validation NoneGenerates JavaScript for validation Manage NuGet Packages More on next slide

30 Murach's ASP.NET 4.5/C#, C2© 2013, Mike Murach & Associates, Inc. Slide 30 NuGet official package source AspNet.ScriptManager.jQuery

31 Murach's ASP.NET 4.5/C#, C2© 2013, Mike Murach & Associates, Inc. Slide 31 Manage NuGet Packages dialog box - 2015 NuGet official package source AspNet.ScriptManager.jQuery

32 Murach's ASP.NET 4.5/C#, C2© 2013, Mike Murach & Associates, Inc. Slide 32 Turn off unobtrusive validation for a site

33 Murach's ASP.NET 4.5/C#, C2© 2013, Mike Murach & Associates, Inc. Slide 33

34 Murach's ASP.NET 4.5/C#, C2© 2013, Mike Murach & Associates, Inc. Slide 34 css style for table

35 Murach's ASP.NET 4.5/C#, C2© 2013, Mike Murach & Associates, Inc. Slide 35 ddl – drop down list txt – text box

36 Murach's ASP.NET 4.5/C#, C2© 2013, Mike Murach & Associates, Inc. Slide 36

37 Murach's ASP.NET 4.5/C#, C2© 2013, Mike Murach & Associates, Inc. Slide 37

38 Murach's ASP.NET 4.5/C#, C2© 2013, Mike Murach & Associates, Inc. Slide 38

39 Murach's ASP.NET 4.5/C#, C2© 2013, Mike Murach & Associates, Inc. Slide 39

40 Murach's ASP.NET 4.5/C#, C2© 2013, Mike Murach & Associates, Inc. Slide 40

41 Murach's ASP.NET 4.5/C#, C2© 2013, Mike Murach & Associates, Inc. Slide 41

42 Murach's ASP.NET 4.5/C#, C2© 2013, Mike Murach & Associates, Inc. Slide 42

43 Murach's ASP.NET 4.5/C#, C2© 2013, Mike Murach & Associates, Inc. Slide 43

44 Murach's ASP.NET 4.5/C#, C2© 2013, Mike Murach & Associates, Inc. Slide 44

45 Murach's ASP.NET 4.5/C#, C2© 2013, Mike Murach & Associates, Inc. Slide 45

46 Murach's ASP.NET 4.5/C#, C2© 2013, Mike Murach & Associates, Inc. Slide 46

47 Murach's ASP.NET 4.5/C#, C2© 2013, Mike Murach & Associates, Inc. Slide 47

48 Murach's ASP.NET 4.5/C#, C2© 2013, Mike Murach & Associates, Inc. Slide 48

49 Murach's ASP.NET 4.5/C#, C2© 2013, Mike Murach & Associates, Inc. Slide 49

50 Murach's ASP.NET 4.5/C#, C2© 2013, Mike Murach & Associates, Inc. Slide 50

51 Murach's ASP.NET 4.5/C#, C2© 2013, Mike Murach & Associates, Inc. Slide 51 Microsoft Edge

52 Firefox – View Source Murach's ASP.NET 4.5/C#, C2© 2013, Mike Murach & Associates, Inc. Slide 52

53 Murach's ASP.NET 4.5/C#, C2© 2013, Mike Murach & Associates, Inc. Slide 53


Download ppt "Murach's ASP.NET 4.5/C#, C2© 2013, Mike Murach & Associates, Inc.Slide 1."

Similar presentations


Ads by Google