Click here to Skip to main content
15,889,873 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hi,
i cannot Localize .aspx pages containg devex controls though the pages with asp controls were localized successfully.
Thanks abhi.
Posted

By Devex, it sounds(and by tag) that you are talking of Devexpress controls.

Look here for proper documentation on how to do it: Localizing DevExpress ASP.NET Controls[^]

They have a very good knowldgebase and supprt forum, if needed.
 
Share this answer
 
Comments
Espen Harlinn 21-Feb-11 10:28am    
Obviously a good advice, good link :)
Sandeep Mewara 21-Feb-11 10:34am    
Comment from OP:
Hi Sandeep,
tanxs for ur valuable advice.
Following are the links which were really helpful:-


Collapse | Copy Code
http://www.devexpress.com/Support/Center/p/K421.aspx http://www.devexpress.com/Support/Center/KB/p/A421.aspx http://documentation.devexpress.com/#AspNet/CustomDocument3872also downloaded dll's of diffrent languages for controls,now how to use them is still a issue.
tomarrow i"ll workin on it.


Thanks ABHI
abhishek.singh.valeteck 21-Feb-11 23:59pm    
Hi sandeep,
atually i had the links that i mentioned which helped me to start wid and i downloaded the dll's too but my problem is how to implement these dll's.
But thanks for ur input
Regards Abhi
Sandeep Mewara 22-Feb-11 0:07am    
Try putting them in BIN folder.
Sandeep Mewara 22-Feb-11 0:08am    
Strange, someone downvoted it. Why would someone! :confused:
C#
Fortunately, ASP.NET provides a method in the Page class to override: InitializeCulture(). This method executes very early in the page lifecycle (much before any control is generated), and here we can set the UICulture and Culture of the current thread.
Since this method is in the Page class and I do not want to repeat the same code for each web page, I created a BasePage class, and all the aspx pages in my application derive from this BasePage class.


i used this code in my common class and it worked:

VB
Protected Overrides Sub InitializeCulture()
        Try
            If (Not String.IsNullOrEmpty(Session("language"))) Then
                Thread.CurrentThread.CurrentCulture = New CultureInfo(Session("language").ToString)
                Thread.CurrentThread.CurrentUICulture = Thread.CurrentThread.CurrentCulture
            Else
                Thread.CurrentThread.CurrentUICulture = New CultureInfo("en-US")
                Thread.CurrentThread.CurrentCulture = New CultureInfo("en-US")
            End If
        Catch ex As Exception
        End Try
        MyBase.InitializeCulture()
    End Sub


also want to Thank Sandeep for valuable advice
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900