Click here to Skip to main content
16,010,553 members
Home / Discussions / Web Development
   

Web Development

 
QuestionI need javascript function which take two parameters(dates) and return total years and months difference Pin
TariqMahmood28-Sep-05 2:18
TariqMahmood28-Sep-05 2:18 
AnswerRe: I need javascript function which take two parameters(dates) and return total years and months difference Pin
Guffa28-Sep-05 2:27
Guffa28-Sep-05 2:27 
QuestionTo disable the back button on the ie Pin
anishyanic28-Sep-05 1:37
anishyanic28-Sep-05 1:37 
AnswerRe: To disable the back button on the ie Pin
Brian Van Beek28-Sep-05 11:23
Brian Van Beek28-Sep-05 11:23 
AnswerRe: To disable the back button on the ie Pin
minhpc_bk28-Sep-05 16:09
minhpc_bk28-Sep-05 16:09 
Questionconvert php to asp.net Pin
ali bagheri28-Sep-05 1:27
ali bagheri28-Sep-05 1:27 
AnswerRe: convert php to asp.net Pin
ali bagheri28-Sep-05 2:09
ali bagheri28-Sep-05 2:09 
Questionchanging culture Pin
wpcolleen27-Sep-05 23:49
wpcolleen27-Sep-05 23:49 
I want to be able to change the culture for a page by pressing an image button with a countries flag, but I'm having problems in that it appears to be ignoring my settings. It works using a dropdown list. Here code sample:-

<%@ Page Language="C#" uiculture="auto" %>
<%@ Import Namespace="System.Threading" %>
<%@ Import Namespace="System.Globalization" %>

protected override void InitializeCulture()
{
if (Request.Form["ListBox1"] != null)
{
String selectedLanguage = Request.Form["ListBox1"];
UICulture = selectedLanguage;
Culture = selectedLanguage ;

Thread.CurrentThread.CurrentCulture =
CultureInfo.CreateSpecificCulture(selectedLanguage);
Thread.CurrentThread.CurrentUICulture = new
CultureInfo(selectedLanguage);
}
base.InitializeCulture();
}


protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
{
ListBox1.Text = "en-GB";
InitializeCulture();
}

protected void ImageButton2_Click(object sender, ImageClickEventArgs e)
{
ListBox1.Text = "es-MX";
InitializeCulture();
}





 <asp:listbox id="ListBox1" runat="server" meta:resourcekey="ListBox1Resource1">
<asp:listitem value="en-GB"
="" selected="True" meta:resourcekey="ListItemResource1">English
<asp:listitem value="es-MX" meta:resourcekey="ListItemResource2">Español
<asp:listitem value="de-DE" meta:resourcekey="ListItemResource3">Deutsch


<asp:button id="Button1" runat="server"
="" text="Set Language" meta:resourcekey="Button1">
<asp:imagebutton id="ImageButton1" runat="server" imageurl="~/unionjack.gif" height="50px" onclick="ImageButton1_Click" width="100px">
<asp:imagebutton id="ImageButton2" runat="server" height="50px" imageurl="~/spanish_flag.jpg" width="100px" onclick="ImageButton2_Click">

<asp:label id="Label1" runat="server"
="" meta:resourcekey="Label1">





 







Clueless
AnswerRe: changing culture Pin
minhpc_bk28-Sep-05 16:05
minhpc_bk28-Sep-05 16:05 
GeneralRe: changing culture Pin
wpcolleen28-Sep-05 21:28
wpcolleen28-Sep-05 21:28 
GeneralRe: changing culture Pin
minhpc_bk29-Sep-05 0:27
minhpc_bk29-Sep-05 0:27 
QuestionConnect to an Access file outside my local network Pin
kokain27-Sep-05 23:28
kokain27-Sep-05 23:28 
AnswerRe: Connect to an Access file outside my local network Pin
enjoycrack27-Sep-05 23:49
enjoycrack27-Sep-05 23:49 
GeneralRe: Connect to an Access file outside my local network Pin
kokain28-Sep-05 1:35
kokain28-Sep-05 1:35 
GeneralRe: Connect to an Access file outside my local network Pin
enjoycrack28-Sep-05 19:56
enjoycrack28-Sep-05 19:56 
GeneralRe: Connect to an Access file outside my local network Pin
kokain28-Sep-05 20:44
kokain28-Sep-05 20:44 
QuestionJob opportunity in the Chicago Area XML/Jscript Pin
KyleGagliardi27-Sep-05 12:27
KyleGagliardi27-Sep-05 12:27 
Questionweb based css editor Pin
savage_27-Sep-05 12:04
savage_27-Sep-05 12:04 
AnswerRe: web based css editor Pin
enjoycrack28-Sep-05 0:45
enjoycrack28-Sep-05 0:45 
QuestionFirefox getting IFrame's innerHTML in a javascript function Pin
mc_Ankara27-Sep-05 5:28
sussmc_Ankara27-Sep-05 5:28 
AnswerRe: Firefox getting IFrame's innerHTML in a javascript function Pin
Guffa27-Sep-05 7:07
Guffa27-Sep-05 7:07 
QuestionRe: Firefox getting IFrame's innerHTML in a javascript function Pin
mc_Ankara27-Sep-05 20:28
sussmc_Ankara27-Sep-05 20:28 
AnswerRe: Firefox getting IFrame's innerHTML in a javascript function Pin
Guffa27-Sep-05 23:41
Guffa27-Sep-05 23:41 
GeneralRe: Firefox getting IFrame's innerHTML in a javascript function Pin
mc_Ankara28-Sep-05 0:41
sussmc_Ankara28-Sep-05 0:41 
GeneralRe: Firefox getting IFrame's innerHTML in a javascript function Pin
Guffa28-Sep-05 2:03
Guffa28-Sep-05 2:03 

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.