Wednesday, March 11, 2009

A Mystery

I don't know why, but this makes me feel all warm and fuzzy inside. I haven't posted in a while. I have been trying to get started with JQuery. Trying to come up with an Ajax solution, I remember the great XDocument and the ability of VB to include literals in code.


Public Function GetEmployee(ByVal employee_code As String) As XDocument
   Dim query As XDocument = <Root>
     <%= From e In New EmployeeDataContext().employees Where e.employee_code = employee_code Select <name><%= e.last_name %></name> %>
     </Root>
   Return query
End Function

No comments:

Post a Comment