Guest User

Untitled

a guest
Aug 14th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. How to Hide Certain Tags While Using Linq to Write XML?
  2. Public Class frm
  3. Public Type As String
  4. Public RowNumber As Integer
  5. Public Col1 As String
  6. Public Col2 As String
  7. End Class
  8.  
  9. Dim bVisCustom2x7 As Boolean
  10.  
  11. Dim visform = <VisitorForm>
  12. <Tabs>
  13. <Tab>
  14. <Type>Custom2x7</Type>
  15. <Order></Order>
  16. <Visibility><%= bVisCustom2x7.ToString %></Visibility>
  17. <%= From frm In frm_list Where frm.Type = "Custom2x7" _
  18. Select _
  19. <Row>
  20. <RowNumber><%= frm.RowNumber %></RowNumber>
  21. <Col1><%= frm.Col1 %></Col1>
  22. <Col2><%= frm.Col2 %></Col2>
  23. </Row>
  24. %>
  25. </Tab>
  26. <Tabs>
  27. <VisitorForm>
  28.  
  29. <Row>
  30. <RowNumber><%= frm.RowNumber %></RowNumber>
  31. <%= If(Not String.IsNullOrEmpty(frm.Col1), <Col1><%= frm.Col1 %></Col1>, Nothing) %>
  32. <Col2><%= frm.Col2 %></Col2>
  33. </Row>
Add Comment
Please, Sign In to add comment