Click here to Skip to main content
15,911,646 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: abt page load Pin
Rajeshwar Code- Developer20-Aug-09 4:17
Rajeshwar Code- Developer20-Aug-09 4:17 
GeneralRe: abt page load Pin
Coding C#20-Aug-09 4:34
Coding C#20-Aug-09 4:34 
GeneralRe: abt page load Pin
DoctorMick20-Aug-09 4:43
DoctorMick20-Aug-09 4:43 
GeneralRe: abt page load Pin
Rajeshwar Code- Developer20-Aug-09 4:51
Rajeshwar Code- Developer20-Aug-09 4:51 
GeneralRe: abt page load Pin
Coding C#20-Aug-09 20:21
Coding C#20-Aug-09 20:21 
QuestionJavascript Method Not found "Webform_Postbackwithoptions" in ASPX form Pin
sBudha20-Aug-09 3:00
sBudha20-Aug-09 3:00 
QuestionASP.NET Application Deployment Problem [modified] Pin
Ibrahim Bello20-Aug-09 2:36
Ibrahim Bello20-Aug-09 2:36 
QuestionHelp with urlrewriting.net Pin
VijayVishwakarma20-Aug-09 1:53
VijayVishwakarma20-Aug-09 1:53 
Hi,

I am working with asp.net multilingual project. I am using the following code to change the culture. a button to call the even

//change the language as user selected
protected void RequestLanguageChange_Click(object sender, EventArgs e)
{
if (Session["isError"] == null)
{
LinkButton senderLink = sender as LinkButton;

//store requested language as new culture in the session
Session["LanguagePreference"] = senderLink.CommandArgument;

//reload last requested page with new culture
Server.Transfer(Request.Path);
}
}

then in my base page class I am initializing the culture as requested by first.


protected override void InitializeCulture()
{
//retrieve culture information from session
//string culture = Convert.ToString(Session[Global.SESSION_KEY_CULTURE]);

string culture = Convert.ToString(Session["LanguagePreference"]);

//check whether a culture is stored in the session
if (culture.Length > 0) Culture = culture;

//set culture to current thread
Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture(culture);
Thread.CurrentThread.CurrentUICulture = new CultureInfo(culture);
Session["LanguagePreference"] = culture;
//call base class
base.InitializeCulture();

}


Now I am trying to use urlrewrite here for which I have added reference and defined the regex too.

The problem is when I change the language when on a urlrewritten page, when doing Server.Transfer(Request.Path); it takes the url of the path but I need the original url for changing the language.


Any suggestions how I can get the original path(url) for that.

Thanks

Vijay V.

Yash Softech

QuestionAspNetSqlMembershipProvider provider settings Pin
Chesnokov Yuriy20-Aug-09 1:45
professionalChesnokov Yuriy20-Aug-09 1:45 
QuestionHow to receive HTTP POST data, an XML file being sent. Pin
Jon Hartney20-Aug-09 1:19
Jon Hartney20-Aug-09 1:19 
AnswerRe: How to receive HTTP POST data, an XML file being sent. Pin
Jon Hartney20-Aug-09 1:52
Jon Hartney20-Aug-09 1:52 
QuestionSystem.Web.UI.HtmlControls.HtmlGenericControl --session Pin
Ramkumar_S20-Aug-09 1:05
Ramkumar_S20-Aug-09 1:05 
AnswerRe: System.Web.UI.HtmlControls.HtmlGenericControl --session Pin
DoctorMick20-Aug-09 4:45
DoctorMick20-Aug-09 4:45 
Questioncrystal report Pin
mylogics20-Aug-09 0:07
professionalmylogics20-Aug-09 0:07 
AnswerRe: crystal report Pin
Christian Graus20-Aug-09 0:09
protectorChristian Graus20-Aug-09 0:09 
GeneralRe: crystal report Pin
mylogics20-Aug-09 0:13
professionalmylogics20-Aug-09 0:13 
Questioncryatal report Pin
mylogics19-Aug-09 23:47
professionalmylogics19-Aug-09 23:47 
AnswerRe: cryatal report Pin
Christian Graus20-Aug-09 0:07
protectorChristian Graus20-Aug-09 0:07 
GeneralRe: cryatal report Pin
mylogics20-Aug-09 0:16
professionalmylogics20-Aug-09 0:16 
GeneralRe: cryatal report Pin
Christian Graus20-Aug-09 0:31
protectorChristian Graus20-Aug-09 0:31 
GeneralRe: cryatal report Pin
mylogics20-Aug-09 0:38
professionalmylogics20-Aug-09 0:38 
GeneralRe: cryatal report Pin
Christian Graus20-Aug-09 1:30
protectorChristian Graus20-Aug-09 1:30 
GeneralRe: cryatal report Pin
mylogics20-Aug-09 1:10
professionalmylogics20-Aug-09 1:10 
Questionaspmenu boreder collapse problem Pin
Mogamboo_Khush_Hua19-Aug-09 22:43
Mogamboo_Khush_Hua19-Aug-09 22:43 
QuestionTo make a list of categories with datalist or any other control Pin
brijmohansingh1019-Aug-09 22:08
brijmohansingh1019-Aug-09 22:08 

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.