Click here to Skip to main content
15,892,927 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: how can bind two tables to one grid view [modified] Pin
Niladri_Biswas13-Jun-09 4:54
Niladri_Biswas13-Jun-09 4:54 
AnswerRe: how can bind two tables to one grid view Pin
N a v a n e e t h13-Jun-09 5:20
N a v a n e e t h13-Jun-09 5:20 
QuestionNeed help multiline textbox Pin
NetQuestions13-Jun-09 3:16
NetQuestions13-Jun-09 3:16 
AnswerRe: Need help multiline textbox Pin
Colin Angus Mackay13-Jun-09 3:44
Colin Angus Mackay13-Jun-09 3:44 
AnswerRe: Need help multiline textbox Pin
N a v a n e e t h13-Jun-09 5:26
N a v a n e e t h13-Jun-09 5:26 
Questionhow to set multilingual setting Pin
anbusenthil13-Jun-09 2:24
anbusenthil13-Jun-09 2:24 
AnswerRe: how to set multilingual setting Pin
Parwej Ahamad13-Jun-09 3:27
professionalParwej Ahamad13-Jun-09 3:27 
GeneralRe: how to set multilingual setting all pages of a websites Pin
anbusenthil14-Jun-09 18:53
anbusenthil14-Jun-09 18:53 
my code is like tis

tis code works on the same page only i want to set the language setting in all pages.....

Imports System
Imports System.Globalization
Imports System.Threading
Imports System.Resources
Imports System.Reflection.AssemblyName
Imports System.IO

Partial Class Testmultiligual
      Inherits System.Web.UI.Page
            Private rm As ResourceManager

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
                     con.ConnectionString = ConfigurationManager.ConnectionStrings("ESCConnection").ConnectionString
            Dim ci As CultureInfo

            If Not Page.IsPostBack Then
              
                  gridbind()
                  Thread.CurrentThread.CurrentCulture = New CultureInfo("en-US")
                  'get the culture info to set the language
                  rm = New ResourceManager("Resources.Strings", System.Reflection.Assembly.Load("App_GlobalResources"))
                  ci = Thread.CurrentThread.CurrentCulture
                  LoadStrings(ci)
            Else
                  'get the culture info to set the language
                  rm = New ResourceManager("Resources.Strings", System.Reflection.Assembly.Load("App_GlobalResources"))
                  ci = Thread.CurrentThread.CurrentCulture
                  LoadStrings(ci)
            End If
      End Sub

Private Sub LoadStrings(ByVal ci As CultureInfo)
            HylEdit.Text = rm.GetString("Add", ci)
            BtnClear.Text = rm.GetString("Clear", ci)
            BtnSave.Text = rm.GetString("Save", ci)
            HylView.Text = rm.GetString("View", ci)
            TDAwd.InnerText = rm.GetString("Awd", ci)
            TDAwdDes.InnerText = rm.GetString("Awddes", ci)
            TDAwdpic.InnerText = rm.GetString("Awdpi", ci)
            TDFreq.InnerText = rm.GetString("Freq", ci)
            TDAwdcri.InnerText = rm.GetString("Awdcri", ci)
            TDAwdSt.InnerText = rm.GetString("AwdSt", ci)
            TDAwdk.InnerText = rm.GetString("Awdk", ci)
            'TDGrvTitle.InnerText = rm.GetString("GrvTitle", ci)

            GVawdview.Columns(1).HeaderText = rm.GetString("AwdNam", ci)

            GVawdview.Columns(2).HeaderText = rm.GetString("Awdesc", ci)
            GVawdview.Columns(3).HeaderText = rm.GetString("Frequcy", ci)
            GVawdview.Columns(4).HeaderText = rm.GetString("Active", ci)

      End Sub

      Protected Sub lnkEng2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles lnkEng2.Click
            Thread.CurrentThread.CurrentCulture = New CultureInfo("en-US")
            LoadStrings(Thread.CurrentThread.CurrentCulture)
            gridbind()
      End Sub

      Protected Sub LnkEng1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles LnkEng1.Click
            Thread.CurrentThread.CurrentCulture = New CultureInfo("es-ES")
            LoadStrings(Thread.CurrentThread.CurrentCulture)
            gridbind()
      End Sub
GeneralRe: how to set multilingual setting all pages of a websites Pin
Parwej Ahamad15-Jun-09 3:58
professionalParwej Ahamad15-Jun-09 3:58 
AnswerRe: how to set multilingual setting Pin
Niladri_Biswas13-Jun-09 5:09
Niladri_Biswas13-Jun-09 5:09 
QuestionIntegrating SqlServerReportingServices into asp.net application? Pin
Pawan Kiran13-Jun-09 1:30
Pawan Kiran13-Jun-09 1:30 
AnswerRe: Integrating SqlServerReportingServices into asp.net application? Pin
Manas Bhardwaj13-Jun-09 1:35
professionalManas Bhardwaj13-Jun-09 1:35 
QuestionERROR: The state information is invalid for this page and might be corrupted. Pin
keyur satyadev13-Jun-09 1:18
keyur satyadev13-Jun-09 1:18 
AnswerRe: ERROR: The state information is invalid for this page and might be corrupted. Pin
Manas Bhardwaj13-Jun-09 1:31
professionalManas Bhardwaj13-Jun-09 1:31 
GeneralRe: ERROR: The state information is invalid for this page and might be corrupted. Pin
keyur satyadev13-Jun-09 2:09
keyur satyadev13-Jun-09 2:09 
Questionhow to set image and background pic and background Pin
anbusenthil13-Jun-09 1:14
anbusenthil13-Jun-09 1:14 
AnswerRe: how to set image and background pic and background Pin
keyur satyadev13-Jun-09 1:25
keyur satyadev13-Jun-09 1:25 
Questionajax toolkit controls in user control Pin
Member 387988113-Jun-09 0:32
Member 387988113-Jun-09 0:32 
QuestionRe-Scripting Pin
ellllllllie12-Jun-09 23:24
ellllllllie12-Jun-09 23:24 
QuestionScripting Pin
ellllllllie12-Jun-09 21:40
ellllllllie12-Jun-09 21:40 
AnswerRe: Scripting Pin
Christian Graus12-Jun-09 22:16
protectorChristian Graus12-Jun-09 22:16 
QuestionHow upload Product feed in Amazon with form of XSD??? Pin
chirag_pandey12-Jun-09 21:39
chirag_pandey12-Jun-09 21:39 
Questionhow to change the header text of an template field dynamically Pin
anbusenthil12-Jun-09 21:33
anbusenthil12-Jun-09 21:33 
Questionwant to use header text in code behind Pin
anbusenthil12-Jun-09 21:26
anbusenthil12-Jun-09 21:26 
AnswerRe: want to use header text in code behind Pin
Parwej Ahamad12-Jun-09 21:36
professionalParwej Ahamad12-Jun-09 21:36 

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.