2
Answers

Globalization not working to me!

Krishna Kishore

Krishna Kishore

19y
2.1k
1
Hi friends,

For my form control , I setted the Language property to some ARABIC...and setted the Localizable property to true.The respective resource file got generated.
I have a button control on that form(Text as Hello World).

And called the below function before InitializeComponent() function.

Thread.CurrentThread.CurrentUICulture = new CultureInfo("ar-BH");


But still not coming...Is there anything extra to do...or any extra files needed......

regards,
Answers (2)
0
Vikram
NA 319 262.4k 14y
Hi yashwant,
  
    Just Define variable in the Markup it consider as Global.

e.g
  
   <script type='text/javascript>
       var Navigateurl="~/block/abc.aspx";
         function pageLoad()
         {
                 //do something
         }

         function otherFunction()
        {
            var newurl = Navigateurl;
        }

</script>
This way you can declare the global variable in the markup.

Hope this will help you.

Regards,
 Vikram