PC Review


Reply
Thread Tools Rate Thread

Dynamic culture allocation with Master pages

 
 
muchira@gmail.com
Guest
Posts: n/a
 
      12th Feb 2007
Hey guys,
I have a Master Page that contains a dropdownlist with a language
selection. Upon a new language selected, I would like for the page to
reload in the selected culture. Thus far, I have been able to get my
cultures to change by using changing the value in my web.config file
and reloading the page. That works fine. Now I need to dynamically
change this value using the DDL. So far, I am unable to capture the
newly selected value, which would enable me to change the culture in
PreInit. How can I capture this value?

I have this:

protected void Page_PreInit(object sender, EventArgs e)
{
DropDownList newCulture =
(DropDownList)Master.FindControl("languageDropDownList");
}

and newCulture.SelectedValue still gives me the default value of the
control.

Thanks

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Migrating Dynamic Web Templates into Master Pages Mark Microsoft ASP .NET 1 21st Jan 2007 04:13 AM
newbie: Master pages... dynamic content... celoftis Microsoft ASP .NET 6 10th Jan 2007 09:54 PM
Master Pages and Culture Greg Microsoft ASP .NET 0 29th Nov 2006 04:57 PM
Dynamic Master / Detail pages question =?Utf-8?B?c3FsYm95MjAwMA==?= Microsoft ASP .NET 3 20th Jun 2006 11:17 PM
VB in Master pages and a dynamic sitemappath Not Me Microsoft ASP .NET 0 16th Mar 2006 04:03 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:17 PM.