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

ASP.NET

 
GeneralRe: Dynamically create controls using AJAX Pin
alimohammed22-Nov-06 18:39
alimohammed22-Nov-06 18:39 
GeneralRe: Dynamically create controls using AJAX Pin
Christian Graus22-Nov-06 19:31
protectorChristian Graus22-Nov-06 19:31 
GeneralRe: Dynamically create controls using AJAX Pin
alimohammed25-Nov-06 1:39
alimohammed25-Nov-06 1:39 
AnswerRe: Dynamically create controls using AJAX Pin
Pavan Naidu20-Nov-06 22:32
Pavan Naidu20-Nov-06 22:32 
QuestionProblem in Session Pin
Sam.M20-Nov-06 21:29
Sam.M20-Nov-06 21:29 
AnswerRe: Problem in Session Pin
ednrgc21-Nov-06 3:42
ednrgc21-Nov-06 3:42 
QuestionHow to convert the site in Any Language Pin
Amit Agarrwal20-Nov-06 21:22
Amit Agarrwal20-Nov-06 21:22 
AnswerRe: How to convert the site in Any Language Pin
Pavan Naidu20-Nov-06 22:17
Pavan Naidu20-Nov-06 22:17 
Hi,
Steps for converting a web page from one language to another.

1)Create a folder for our convenience purpose Eg: Resources
2)In that folder create 4 resource files -> Right click on resources -> add new item -> select resource file.
3)Take names for our convenience purpose Eg:projectname.en.resx,projectname.de.resx....
4)In that resx file there is key - value pair
Eg: keyname is name and the value is Name for english
keyname is name and the value is Dame for Germany ... etc.
here keyname should be same in all languages... ok
5)When language item is selected just u chanage the session as ....
Eg:
a) Session["culture"]="en";

b)
if(Convert.ToString(Session["culture"])=="en")
{

//Using thread to assign language information

Thread.CurrentThread.CurrentCulture=CultureInfo.CreateSpecificCulture("en");
Thread.CurrentThread.CurrentUICulture=new CultureInfo("en");
}
else if(Convert.ToString(Session["culture"])=="de")
{

//Using thread to assign language information

Thread.CurrentThread.CurrentCulture=CultureInfo.CreateSpecificCulture("de");
Thread.CurrentThread.CurrentUICulture=new CultureInfo("de");
}
c)
ResourceManager rm =new ResourceManager("projectname.foldername.basename",Assembly.Load("your project assemblyname"));

d) label1.text=rm.getString("keyname"); // keyname that is same in all languages.


----- End ------

You said version 2.0 code is available with you. If you have that code will u plz send that code.





Regards,
Pavan.
GeneralRe: How to convert the site in Any Language Pin
Amit Agarrwal20-Nov-06 22:25
Amit Agarrwal20-Nov-06 22:25 
GeneralRe: How to convert the site in Any Language Pin
Pavan Naidu20-Nov-06 22:41
Pavan Naidu20-Nov-06 22:41 
GeneralRe: How to convert the site in Any Language Pin
Amit Agarrwal20-Nov-06 22:57
Amit Agarrwal20-Nov-06 22:57 
GeneralRe: How to convert the site in Any Language Pin
Pavan Naidu20-Nov-06 23:11
Pavan Naidu20-Nov-06 23:11 
QuestionChanging application from 1.1 ver. to 2.0 [modified] Pin
Pavan Naidu20-Nov-06 21:14
Pavan Naidu20-Nov-06 21:14 
QuestionTreeview in Master pages - selected node Pin
shreekar20-Nov-06 20:51
shreekar20-Nov-06 20:51 
Questionretrieve currency format Pin
playout20-Nov-06 20:23
playout20-Nov-06 20:23 
Questiondatabase access Pin
Shriya Kapoor20-Nov-06 20:11
Shriya Kapoor20-Nov-06 20:11 
QuestionLeft alignment of label in javascript [modified] Pin
ayeleteric20-Nov-06 20:00
ayeleteric20-Nov-06 20:00 
AnswerRe: Left alignment of label in javascript Pin
shreekar20-Nov-06 20:53
shreekar20-Nov-06 20:53 
Questionimage navigation Pin
yuvachandra20-Nov-06 19:51
yuvachandra20-Nov-06 19:51 
AnswerRe: image navigation Pin
_AK_20-Nov-06 20:18
_AK_20-Nov-06 20:18 
QuestionInLine or CodeBehind? Pin
faviochilo20-Nov-06 19:38
faviochilo20-Nov-06 19:38 
AnswerRe: InLine or CodeBehind? Pin
Christian Graus20-Nov-06 20:16
protectorChristian Graus20-Nov-06 20:16 
AnswerRe: InLine or CodeBehind? Pin
Dave Doknjas21-Nov-06 13:51
Dave Doknjas21-Nov-06 13:51 
QuestionCSS problem - distorted look of application in IE7 Pin
sheetal alaspure20-Nov-06 19:36
sheetal alaspure20-Nov-06 19:36 
QuestionHow to view Uploaded word file using asp.net Pin
SmittyvIsidhore20-Nov-06 19:35
SmittyvIsidhore20-Nov-06 19:35 

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.