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
using System;
using System.Collections;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace LocalizedSample {
   /// <summary>
   /// Summary description for BindingSample.
   /// </summary>
   public class BindingSample : Page {
      protected Repeater repeater;
      private void Page_Load(object sender, EventArgs e) {
         ArrayList arr = 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();         
      }


      #region Web Form Designer generated code
      protected override void OnInit(EventArgs e) {
         //
         // CODEGEN: This call is required by the ASP.NET Web Form Designer.
         //
         InitializeComponent();
         base.OnInit(e);
      }
      /// <summary>
      /// Required method for Designer support - do not modify
      /// the contents of this method with the code editor.
      /// </summary>
      private void InitializeComponent() {
         this.Load += new EventHandler(this.Page_Load);
      }
      #endregion
   }
   public class DummyUser{
      #region Fields and Properties
      private int userId;
      private string userName;
      private DateTime lastLogin;
      private string name;

      public int UserId {
         get { return userId; }
         set { userId = value; }
      }

      public string UserName {
         get { return userName; }
         set { userName = value; }
      }

      public DateTime LastLogin {
         get { return lastLogin; }
         set { lastLogin = value; }
      }

      public string Name {
         get { return name; }
         set { name = value; }
      }
#endregion
      public DummyUser() {}
      public DummyUser(int userId, string userName, DateTime lastLogin, string name) {
         this.userId = userId;
         this.userName = userName;
         this.lastLogin = lastLogin;
         this.name = name;
      }
   }
}

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

About the Author

Karl Seguin

Canada Canada
No Biography provided

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