Click here to Skip to main content
15,885,941 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionuse Ajax controls in handlebar template with HandelBar & Asp.net & Ajax Pin
mahadevkarekar2-Oct-15 1:22
mahadevkarekar2-Oct-15 1:22 
QuestionOpen files from listbox file listing in c# Pin
Member 120161061-Oct-15 17:26
Member 120161061-Oct-15 17:26 
AnswerRe: Open files from listbox file listing in c# Pin
Wendelius1-Oct-15 17:42
mentorWendelius1-Oct-15 17:42 
GeneralRe: Open files from listbox file listing in c# Pin
Member 120161061-Oct-15 17:58
Member 120161061-Oct-15 17:58 
GeneralRe: Open files from listbox file listing in c# Pin
Member 120161061-Oct-15 20:42
Member 120161061-Oct-15 20:42 
GeneralRe: Open files from listbox file listing in c# Pin
Wendelius1-Oct-15 21:02
mentorWendelius1-Oct-15 21:02 
GeneralRe: Open files from listbox file listing in c# Pin
Member 120161061-Oct-15 21:14
Member 120161061-Oct-15 21:14 
QuestionApp_GlobalResources and resx files, cannot find appropriate culture Pin
jkirkerx1-Oct-15 9:34
professionaljkirkerx1-Oct-15 9:34 
So I have a Webforms Web Project. I have these backend master pages that I'm converting to bootstrap.css, and I thought it would be nice to support 3 languages for the rest of the backend already is set to go.

I guess this error, now on a DLL or Windows App, I would use the root namespace and then the name of the file. ???? Maybe that's what I'm missing to register the file, a namespace.
Could not find any resources appropriate for the specified culture or the neutral culture.  Make sure "login.master.en-us.resources" was correctly embedded or linked into assembly "App_Web_dubrzsw3" at compile time, or that all the satellite assemblies required are loadable and fully signed.

So I made this folder call App_GlobalResources and put 3 files in it.
login.master.en-us.resx
login.master.fr-ca.resx
login.master.ex-mx.resx

Then in the master code behind page, I put this in pre-render, does the same thing page load
Imports System.Resources
Imports System.Globalization
Imports System.IO
Imports System.Reflection

Partial Class Masterpages_Admin_Login
    Inherits System.Web.UI.MasterPage

    Protected rm As ResourceManager
    Protected ci As CultureInfo

    Protected Sub Page_PreRender(sender As Object, e As EventArgs) Handles Me.PreRender

        Dim m_context As HttpContext = HttpContext.Current
        Dim m_localization As String = "english"
        If Not (m_context.Request.QueryString("language") Is Nothing) Then

            m_localization = m_context.Request.QueryString("language")
            Select Case m_localization.ToLower

                Case "english"
                    rm = New ResourceManager("login.master.en-us", Assembly.GetExecutingAssembly())
                    ci = New CultureInfo("en-US")

                Case "french"
                    rm = New ResourceManager("login.master.fr-ca", Assembly.GetExecutingAssembly())
                    ci = New CultureInfo("fr-CA")

                Case "spanish"
                    rm = New ResourceManager("login.master.es-mx", Assembly.GetExecutingAssembly())
                    ci = New CultureInfo("es-MX")

                Case Else
                    rm = New ResourceManager("login.master.en-us", Assembly.GetExecutingAssembly())
                    ci = New CultureInfo("en-US")

            End Select

        Else

            rm = New ResourceManager("login.master.en-us", Assembly.GetExecutingAssembly())
            ci = New CultureInfo("en-US")

        End If

    End Sub

On the master page in Html, I put this in
<li class="pull-right"><a href="#top"><% rm.GetString("txtTop")%></a></li>

Answer[Solved] Re: App_GlobalResources and resx files, cannot find appropriate culture, masterpage Pin
jkirkerx1-Oct-15 13:50
professionaljkirkerx1-Oct-15 13:50 
Questionstart date end date not working Pin
Ekrem Tapan30-Sep-15 23:43
Ekrem Tapan30-Sep-15 23:43 
AnswerRe: start date end date not working Pin
Wendelius1-Oct-15 8:40
mentorWendelius1-Oct-15 8:40 
QuestionI wanted to upload Multiple Files With ListBox in ASP.NET Pin
Member 1201610630-Sep-15 16:33
Member 1201610630-Sep-15 16:33 
AnswerRe: I wanted to upload Multiple Files With ListBox in ASP.NET Pin
aarif moh shaikh1-Oct-15 0:29
professionalaarif moh shaikh1-Oct-15 0:29 
GeneralRe: I wanted to upload Multiple Files With ListBox in ASP.NET Pin
Member 120161061-Oct-15 17:12
Member 120161061-Oct-15 17:12 
GeneralRe: I wanted to upload Multiple Files With ListBox in ASP.NET Pin
Member 120161061-Oct-15 17:23
Member 120161061-Oct-15 17:23 
QuestionDisplay Image from MSSQL database into asp.net page using vb Pin
caffrey_130-Sep-15 4:52
caffrey_130-Sep-15 4:52 
AnswerRe: Display Image from MSSQL database into asp.net page using vb Pin
Wendelius30-Sep-15 5:01
mentorWendelius30-Sep-15 5:01 
GeneralRe: Display Image from MSSQL database into asp.net page using vb Pin
caffrey_130-Sep-15 5:18
caffrey_130-Sep-15 5:18 
GeneralRe: Display Image from MSSQL database into asp.net page using vb Pin
caffrey_130-Sep-15 20:48
caffrey_130-Sep-15 20:48 
GeneralRe: Display Image from MSSQL database into asp.net page using vb Pin
Wendelius1-Oct-15 8:34
mentorWendelius1-Oct-15 8:34 
QuestionI'm working on upload exe file in c# Pin
Member 1201610630-Sep-15 0:04
Member 1201610630-Sep-15 0:04 
AnswerRe: I'm working on upload exe file in c# Pin
Richard Deeming30-Sep-15 2:37
mveRichard Deeming30-Sep-15 2:37 
GeneralRe: I'm working on upload exe file in c# Pin
Member 1201610630-Sep-15 4:17
Member 1201610630-Sep-15 4:17 
QuestionHow to display image in a treeview from database Pin
Zahid Hayat29-Sep-15 21:41
Zahid Hayat29-Sep-15 21:41 
AnswerRe: How to display image in a treeview from database Pin
Blikkies29-Sep-15 22:55
professionalBlikkies29-Sep-15 22:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.