how to change the culture on the aspx page

Posted on 2009-02-23
Last Modified: 2012-05-06
hello experts
i am trying to post data to the payment gateway to process the order however having issues with customers who has different regional settings set sending incorrect decimal in the amount field

i have a function which invokes the call to the external website and just before going to the third party site for the payment i want to change the culture to "UK"

please can someone advise how to set the culture here?


Private Function SendToEPDQ(ByVal OrderID As Integer, ByVal Total As Decimal) As Boolean



            Culture = "en-UK"    ' i am getting error if i do this here 

            'The Following Creates the WebClient Object

            Dim web As New System.Net.WebClient()

            'The Header Content Type is then set

            web.Headers.Add("Content-Type", "application/x-www-form-urlencoded")

            'PostData is then declared as data type Byte and populated with the post data

                 'The Web object is then used to upload the postdata to the Encryption URL and the response is stored in the Response variable

              'The response from the post is the converted from Type Byte to String and stored in the session variable

            Dim TextResponse As String = (System.Text.Encoding.ASCII.GetString(Response))

            Session("Response") = TextResponse

        Catch ex As Exception

          test.eMail.SendErrorEmail("Error retrieving information from ePDQ (CheckOutDetails - SendToePDQ)", ex.ToString)

            Return False

        End Try

        Return True

    End Function

Open in new window

Question by:newbie27
    LVL 27

    Accepted Solution

    LVL 11

    Assisted Solution

    Thread.CurrentThread.CurrentCulture = new CultureInfo("en-UK");
    Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-UK");
    LVL 8

    Author Comment


    apparently its en-GB

    Thread.CurrentThread.CurrentCulture = new CultureInfo("en-GB");

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Join & Write a Comment

    I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
    ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    732 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now