Presentation is loading. Please wait.

Presentation is loading. Please wait.

By: Paul D. Sheriff or SESSION CODE: DEV320.

Similar presentations


Presentation on theme: "By: Paul D. Sheriff or SESSION CODE: DEV320."— Presentation transcript:

1 By: Paul D. Sheriff PSheriff@pdsa.com www.pdsa.com or www.PaulSheriffInnerCircle.com SESSION CODE: DEV320

2

3

4

5

6 VB.NET Dim menu = _ New XDocument( _ New XDeclaration("1.0", "utf-8", "yes"), _ New XComment("Prototype Menus"), _ New XElement("Menus")) C# var menu = new XDocument( new XDeclaration("1.0", "utf-8", "yes"), new XComment("Prototype Menus"), new XElement("Menus"));

7 VB.NET Dim menu = _ New XDocument( _ New XDeclaration("1.0", "utf-8", "yes"), _ New XComment("Prototype Menus"), _ New XElement("Menus", _ New XElement("Menu", _ New XElement("MenuID", "10"), _ New XElement("DisplayOrder", "10"), _ New XElement("MenuText", "Home") _ )))

8 VB.NET Dim menu = _ 10 Home NextPage.aspx

9

10

11

12 VB.NET From in _ Where _ Order By [Ascending | Descending] Select [ = ], [ = ] … C# from in where orderby [ascending | descending] select, …

13 VB.NET Dim menus = From mnu In xElem. _ Where mnu..Value = "" _ Select mnu C# var menus = from mnu in xdoc.Descendants("Menu") where mnu.Element("ParentMenuID").Value == "" select mnu;

14

15

16

17

18 Dim db As New NorthwindDataContext Dim products = <%= From prod In db.Products _ Select %>

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35 Required Slide Track PMs will supply the content for this slide, which will be inserted during the final scrub.

36 www.microsoft.com/teched www.microsoft.com/learning http://microsoft.com/technet http://microsoft.com/msdn

37

38 Sign up for Tech·Ed 2011 and save $500 starting June 8 – June 31 st http://northamerica.msteched.com/registration You can also register at the North America 2011 kiosk located at registration Join us in Atlanta next year

39

40


Download ppt "By: Paul D. Sheriff or SESSION CODE: DEV320."

Similar presentations


Ads by Google