Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7082649
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:04:49+00:00 2026-05-28T07:04:49+00:00

To allow the client to manually select their own language, I received instructions to

  • 0

To allow the client to manually select their own language, I received instructions to install the following in my “basepage“. I just have regular .aspx pages and 5 master pages. I have a Visual Studio 2010 / vb / net 4.0 website. I just created my own class in Visual Studio and put the BasePage.vb in my app_code folder. Am I doing the right thing?

  Public Class BasePage
Inherits Page
Private Const m_DefaultCulture As String = "en-GB"

Protected Overrides Sub InitializeCulture()
    'retrieve culture information from session
    Dim culture__1 As String = Convert.ToString(Session("MyCulture"))

    'check whether a culture is stored in the session
    If Not String.IsNullOrEmpty(culture__1) Then
        Culture = culture__1
    Else
        Culture = m_DefaultCulture
    End If

    'set culture to current thread
    Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture(culture__1)
    Thread.CurrentThread.CurrentUICulture = New CultureInfo(culture__1)

    'call base class
    MyBase.InitializeCulture()
End Sub
End Class
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T07:04:50+00:00Added an answer on May 28, 2026 at 7:04 am

    Just create a class called BasePage and derive all your pages from that Page instead of classic ASP.NET Page.

    Your BasePage would derive from classic ASP.NET Page.

    Read Using a Custom Base Class for your ASP.NET Pages’ Code-Behind Classes

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a client who wants a solution to allow delivery people to text
So I have a client who's current host does not allow me to use
I have a WCF web service. This web service should only allow certain client
We have a custom-made system to track client tasks/projects. We manually add a checklist
we have a DevExpress ASPxGridView in our webapp with EnableCallbacks=true to allow client side
For a REST interface: What is the best way to allow the client to
We're embarking on a new middle tier service that will allow internal client systems
firefox wont allow the javascript to save a file in client machine is the
I'm working on an interface to allow our clients to update their DNS on
I have some client-side validation against a text box, which only allows numbers up

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.