Click here to Skip to main content
15,891,253 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: display a message with the help of the msg box Pin
Christian Graus2-Jun-09 0:17
protectorChristian Graus2-Jun-09 0:17 
GeneralRe: display a message with the help of the msg box Pin
Colin Angus Mackay2-Jun-09 2:21
Colin Angus Mackay2-Jun-09 2:21 
GeneralRe: display a message with the help of the msg box Pin
Vasudevan Deepak Kumar2-Jun-09 3:38
Vasudevan Deepak Kumar2-Jun-09 3:38 
GeneralRe: display a message with the help of the msg box Pin
Colin Angus Mackay2-Jun-09 4:07
Colin Angus Mackay2-Jun-09 4:07 
QuestionCrystal Reports with ASP.Net Pin
BhavinBhatt1-Jun-09 23:49
BhavinBhatt1-Jun-09 23:49 
AnswerRe: Crystal Reports with ASP.Net Pin
Abhishek Sur2-Jun-09 0:55
professionalAbhishek Sur2-Jun-09 0:55 
AnswerRe: Crystal Reports with ASP.Net Pin
Matt Cavanagh2-Jun-09 21:27
Matt Cavanagh2-Jun-09 21:27 
QuestionError In Localization Pleas Help Pin
mdazeemuddin1-Jun-09 23:27
mdazeemuddin1-Jun-09 23:27 
Hi All,

i am developing one web application with two language in English and Arabic in my application i used master page and other pages are content pages i used Link Button for Language selection in master page i create BasePage.cs in App_Code the BasePage.cs code is



1 protected override void InitializeCulture()
2 {
3 string currentCulture = Convert.ToString(Session["userCulture"]);
4 if (!string.IsNullOrEmpty(currentCulture))
5 currentCulture = currentCulture;
6 else
7 currentCulture = "en-us";
8 Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture(currentCulture);
9 Thread.CurrentThread.CurrentUICulture = new CultureInfo(currentCulture);
10
11 base.InitializeCulture();
12 }



i create Global.asax file also and the code for this is



void Session_Start(object sender, EventArgs e)
{

Session["MyCulture"] = "en-us";

}

in MasterPage.master i write the code for ButtonEvent for OnClick event and the code is

protected void changeCulture_Click(object sender, EventArgs e)
{
LinkButton senderLink = sender as LinkButton;

Session["userCulture"] = senderLink.CommandArgument;

Server.Transfer(Request.Path);
}

and i create the resource file for only one page that is orderonline page in Arabic and in English i put this file

in App_Resource folder and i make all pages derive from BasePage instead of Standard System.web.UI.Page

now my question is when i run this application and i try to click the Arabic or English Button to change the

language instead of generating the onclick event from the linkbutton simply its submitting form in orderonline.aspx which have resource file in App_Resource folder

if i open some other page like about us etc from this page i can easily change the language

where i am doing mistake i don't can any one help me for solving this problem



thank in advance for any help
AnswerRe: Error In Localization Pleas Help Pin
Herman<T>.Instance2-Jun-09 21:52
Herman<T>.Instance2-Jun-09 21:52 
QuestionRest webservices Pin
manowj1-Jun-09 22:20
manowj1-Jun-09 22:20 
AnswerRe: Rest webservices Pin
Abhijit Jana1-Jun-09 23:50
professionalAbhijit Jana1-Jun-09 23:50 
GeneralRe: Rest webservices Pin
manowj2-Jun-09 4:32
manowj2-Jun-09 4:32 
Questionsql query Pin
jainiraj1-Jun-09 21:57
jainiraj1-Jun-09 21:57 
AnswerRe: sql query Pin
RajeevKumarSharma1-Jun-09 23:02
RajeevKumarSharma1-Jun-09 23:02 
GeneralRe: sql query Pin
jainiraj2-Jun-09 4:20
jainiraj2-Jun-09 4:20 
AnswerRe: sql query Pin
Christian Graus1-Jun-09 23:03
protectorChristian Graus1-Jun-09 23:03 
QuestionJava Scipt with Asp.Net Pin
Amit Patel19851-Jun-09 21:46
Amit Patel19851-Jun-09 21:46 
AnswerRe: Java Scipt with Asp.Net Pin
Abhishek Sur1-Jun-09 21:58
professionalAbhishek Sur1-Jun-09 21:58 
AnswerRe: Java Scipt with Asp.Net Pin
Christian Graus1-Jun-09 23:01
protectorChristian Graus1-Jun-09 23:01 
Questionusing button in ajax accordion Pin
Ariful Islam Sabuz1-Jun-09 21:46
Ariful Islam Sabuz1-Jun-09 21:46 
AnswerRe: using button in ajax accordion Pin
Blue_Boy1-Jun-09 21:52
Blue_Boy1-Jun-09 21:52 
Questionkey Code value problem Pin
ais071-Jun-09 21:27
ais071-Jun-09 21:27 
AnswerRe: key Code value problem Pin
Blue_Boy1-Jun-09 21:59
Blue_Boy1-Jun-09 21:59 
QuestionHow to set DataSet as DataSource in web app ? Pin
hdv2121-Jun-09 21:06
hdv2121-Jun-09 21:06 
AnswerRe: How to set DataSet as DataSource in web app ? Pin
Abhijit Jana1-Jun-09 23:51
professionalAbhijit Jana1-Jun-09 23:51 

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.