Click here to Skip to main content
Click here to Skip to main content
Articles » Web Development » ASP.NET » General » Downloads
 
Add your own
alternative version

Creating multilingual websites - Part 2

, 25 Aug 2004
Creating multilingual websites - Part 2
LocalizedSamplePart2.zip
LocalizedSample
bin
Localization.dll
LocalizedSample.dll
language
en-CA
fr-CA
Localization
bin
Localization.csproj.user
Localization.resharperoptions
LocalizedSample.csproj.webinfo
LocalizedSample.resharperoptions
LocalizedSamplePart2VB.zip
LocalizedSampleVB
bin
Localization.dll
LocalizedSampleVB.dll
language
en-CA
fr-CA
Localization
bin
Localization.dll
Localization.vbproj.user
LocalizedSampleVB.resharperoptions
LocalizedSampleVB.vbproj.webinfo
Public Class BindingSample
   Inherits System.Web.UI.Page

   Protected repeater As System.Web.UI.WebControls.Repeater

#Region " Web Form Designer Generated Code "
   <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()

   End Sub
   Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
      InitializeComponent()
   End Sub
#End Region

   Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

      Dim arr As New ArrayList(5)
      arr.Add(New DummyUser(1, "Paul", DateTime.Now.AddHours(-32), "Mahdi"))
      arr.Add(New DummyUser(3, "Leto II", DateTime.Now.AddHours(-332), "God Emperor"))
      arr.Add(New DummyUser(4, "Jessica", DateTime.Now.AddHours(-22), "Witch"))
      arr.Add(New DummyUser(7, "Chani", DateTime.Now.AddHours(-112), "Faroula"))
      arr.Add(New DummyUser(12, "Teg", DateTime.Now.AddHours(-2), "Bashar"))
      repeater.DataSource = arr
      repeater.DataBind()
   End Sub

   Public Class DummyUser
#Region "Fields and Properties"
      Private _userId As Integer
      Private _userName As String
      Private _lastLogin As DateTime
      Private _name As String

      Public Property UserId() As Integer
         Get
            Return _userId
         End Get
         Set(ByVal Value As Integer)
            _userId = Value
         End Set
      End Property

      Public Property UserName() As String
         Get
            Return _userName
         End Get
         Set(ByVal Value As String)
            _userName = Value
         End Set
      End Property

      Public Property LastLogin() As DateTime
         Get
            Return _lastLogin
         End Get
         Set(ByVal Value As DateTime)
            _lastLogin = Value
         End Set
      End Property

      Public Property Name() As String
         Get
            Return _name
         End Get
         Set(ByVal Value As String)
            _name = Value

         End Set
      End Property
#End Region

      Public Sub New()

      End Sub
      Public Sub New(ByVal userId As Integer, ByVal userName As String, ByVal lastLogin As DateTime, ByVal name As String)
         Me._userId = userId
         Me._userName = userName
         Me._lastLogin = lastLogin
         Me._name = name
      End Sub

   End Class
End Class

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 has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

Karl Seguin

Canada Canada
No Biography provided

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.150123.1 | Last Updated 26 Aug 2004
Article Copyright 2004 by Karl Seguin
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid