Click here to Skip to main content
15,917,473 members
Home / Discussions / C#
   

C#

 
GeneralMessageboxes as MDI children Pin
Bekjong20-Mar-08 4:48
Bekjong20-Mar-08 4:48 
GeneralRe: Messageboxes as MDI children Pin
led mike20-Mar-08 4:57
led mike20-Mar-08 4:57 
GeneralRe: Messageboxes as MDI children Pin
Bekjong20-Mar-08 5:05
Bekjong20-Mar-08 5:05 
QuestionWeb server and User Machine Pin
drbrucce20-Mar-08 3:03
drbrucce20-Mar-08 3:03 
GeneralRe: Web server and User Machine Pin
N a v a n e e t h20-Mar-08 3:09
N a v a n e e t h20-Mar-08 3:09 
GeneralSecurity exception Pin
DaveyM6920-Mar-08 2:59
professionalDaveyM6920-Mar-08 2:59 
GeneralRe: Security exception Pin
Bashir Magomedov20-Mar-08 4:21
Bashir Magomedov20-Mar-08 4:21 
Questionproblem with a function Pin
pyde20-Mar-08 2:44
pyde20-Mar-08 2:44 
hi all,

i'm trying to get iformation from my database(db) so the unique productId. When the product is displayed on the web page should have the right language in the product description...

now it's build and it's shows just the e.g("productDescriptionFin") if the FIN language is choosed...in the textbox...

protected string GetDescription(object productId)

{

string strDescription = "ProductDescription";


if (Thread.CurrentThread.CurrentCulture.Name.ToLower() == "fi-fi")
{
strDescription = "productDescriptionFIN";
}

else if (Thread.CurrentThread.CurrentCulture.Name.ToLower() == "en-us")
{
strDescription = "productDescriptionENG";
}
else if (Thread.CurrentThread.CurrentCulture.Name.ToLower() == "sv-se")
{
strDescription = "productDescriptionSWE";
}
else if (Thread.CurrentThread.CurrentCulture.Name.ToLower() == "de-de")
{
strDescription = "productDescriptionGER";
}
else if (Thread.CurrentThread.CurrentCulture.Name.ToLower() == "ru-ru")
{
strDescription = "productDescriptionRUS";
}


return strDescription.ToString();

//this part i don't get to function 100%

//TextBox desc = new TextBox(productId[strDescription](), productId["productId"]());
//return desc;

//ListView desc = new ListView(productId[strDescription].(), productId[strDescription].ToString());
//return desc;

}



I display the product info on a ListView with a textbox inside...

<asp:Textbox Style="position: static" ID="tbDescrProductInfo" runat="server" Width="245px"
TextMode="MultiLine" Text='<%# GetDescription(Eval("productId")) %>' ReadOnly="True"></asp:Textbox>

so i wonder if any one can give me some tips or correct me if i'm going far to wrong in the code....

thanxxx wishes maxxx
GeneralRe: problem with a function Pin
Paul Conrad21-Mar-08 10:05
professionalPaul Conrad21-Mar-08 10:05 
GeneralRe: problem with a function Pin
pyde22-Mar-08 0:57
pyde22-Mar-08 0:57 
GeneralRe: problem with a function Pin
pyde26-Mar-08 8:26
pyde26-Mar-08 8:26 
GeneralPrinting borderless with PrintDocument class (on a printer that supports it) Pin
AntoonHzn20-Mar-08 2:42
AntoonHzn20-Mar-08 2:42 
GeneralSpeed MyDriver Day !!! Pin
morisson_c20-Mar-08 2:36
morisson_c20-Mar-08 2:36 
GeneralRe: Speed MyDriver Day !!! Pin
Rob Philpott20-Mar-08 2:46
Rob Philpott20-Mar-08 2:46 
GeneralRe: Speed MyDriver Day !!! Pin
morisson_c20-Mar-08 2:48
morisson_c20-Mar-08 2:48 
GeneralRe: Speed MyDriver Day !!! Pin
Bekjong20-Mar-08 3:53
Bekjong20-Mar-08 3:53 
GeneralRe: Speed MyDriver Day !!! Pin
morisson_c20-Mar-08 4:03
morisson_c20-Mar-08 4:03 
GeneralCached Values Pin
Chrispie12320-Mar-08 2:30
Chrispie12320-Mar-08 2:30 
QuestionAssign drive letter Pin
boschler20-Mar-08 1:22
boschler20-Mar-08 1:22 
GeneralRe: Assign drive letter Pin
Vasudevan Deepak Kumar20-Mar-08 5:44
Vasudevan Deepak Kumar20-Mar-08 5:44 
GeneralRe: Assign drive letter Pin
boschler26-Mar-08 2:54
boschler26-Mar-08 2:54 
Generalconverting string with multiple values to string array Pin
gottimukkala20-Mar-08 1:18
gottimukkala20-Mar-08 1:18 
GeneralRe: converting string with multiple values to string array Pin
Not Active20-Mar-08 1:23
mentorNot Active20-Mar-08 1:23 
GeneralRe: converting string with multiple values to string array Pin
Farhan Ali20-Mar-08 1:24
Farhan Ali20-Mar-08 1:24 
GeneralFileUpload1.Postedfile.FileName not working in firefox Pin
Farhan Ali20-Mar-08 1:10
Farhan Ali20-Mar-08 1:10 

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.