Click here to Skip to main content
15,881,882 members
Articles / Web Development / ASP.NET

ASP.NET/AJAX 3.5 With Aquarium Express

Rate me:
Please Sign up or sign in to vote.
3.60/5 (7 votes)
18 Sep 2008Ms-PL12 min read 35.7K   954   29  
Learn to build modern AJAX and ASP.NET 3.5 applications with free Aquarium Express Framework
Imports System
Imports System.Collections.Generic
Imports System.ComponentModel
Imports System.Data
Imports System.Data.Common
Imports System.Linq
Imports System.Text
Imports System.Text.RegularExpressions
Imports System.Web
Imports System.Web.Caching
Imports System.Web.Configuration
Imports System.Web.Security
Imports System.Xml
Imports System.Xml.XPath

Namespace MyCompany.Data
    
    Public Class View
        
        Private m_Id As String
        
        Private m_Label As String
        
        Private m_HeaderText As String
        
        Private m_Type As String
        
        Public Sub New()
            MyBase.New
        End Sub
        
        Public Sub New(ByVal view As XPathNavigator, ByVal resolver As IXmlNamespaceResolver)
            MyBase.New
            Me.m_Id = CType(view.Evaluate("string(@id)"),String)
            Me.m_Type = CType(view.Evaluate("string(@type)"),String)
            Me.m_Label = CType(view.Evaluate("string(@label)"),String)
            Me.m_HeaderText = CType(view.Evaluate("string(c:headerText)", resolver),String)
        End Sub
        
        Public ReadOnly Property Id() As String
            Get
                Return m_Id
            End Get
        End Property
        
        Public ReadOnly Property Label() As String
            Get
                Return m_Label
            End Get
        End Property
        
        Public ReadOnly Property HeaderText() As String
            Get
                Return m_HeaderText
            End Get
        End Property
        
        Public ReadOnly Property Type() As String
            Get
                Return m_Type
            End Get
        End Property
    End Class
End Namespace

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Microsoft Public License (Ms-PL)


Written By
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
This is a Organisation

1 members

Comments and Discussions