Click here to Skip to main content
15,881,089 members
Home / Discussions / ASP.NET
   

ASP.NET

 
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 
Answer[Solved] Re: App_GlobalResources and resx files, cannot find appropriate culture, masterpage Pin
jkirkerx1-Oct-15 13:50
professionaljkirkerx1-Oct-15 13:50 
I figured it out, but the solution is long and complex

Basically, I'm going to create a new DLL that has nothing but resource strings
And call that DLL Assemby in Page Load of the Master Page.
Then use a Label Control, and populate that Label in Code Behind.
Partial Class Masterpages_Admin_Login
    Inherits System.Web.UI.MasterPage

    Public rm As ResourceManager
    Public ci As CultureInfo

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

        Dim m_context As HttpContext = HttpContext.Current
        Dim Assembly As System.Reflection.Assembly = System.Reflection.Assembly.Load("Admin_Standard")

        If Not (m_context.Request.QueryString("language") Is Nothing) Then

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

                Case "english"
                    rm = New System.Resources.ResourceManager("Admin_Standard.labels_en", Assembly)
                    ci = New CultureInfo("en-US")

                Case "french"
                    rm = New System.Resources.ResourceManager("Admin_Standard.labels_fr", Assembly)
                    ci = New CultureInfo("fr-CA")

                Case "spanish"
                    rm = New System.Resources.ResourceManager("Admin_Standard.labels_es", Assembly)
                    ci = New CultureInfo("es-MX")

                Case Else
                    rm = New System.Resources.ResourceManager("Admin_Standard.labels_en", Assembly)
                    ci = New CultureInfo("en-US")

            End Select

        Else

            rm = New System.Resources.ResourceManager("Admin_Standard.labels_en", Assembly)
            ci = New CultureInfo("en-US")

            Dim m_string As String = rm.GetString("Back to top")

        End If

        lbl_BackToTop.Text = rm.GetString("txtTop")

    End Sub

End Class

HTML
li class="pull-right"><a href="#top"><asp:Label ID="lbl_BackToTop" runat="server" Text="Back to top" /></a></li>

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 
GeneralRe: How to display image in a treeview from database Pin
Zahid Hayat30-Sep-15 2:56
Zahid Hayat30-Sep-15 2:56 

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.