|
Personally I wouldn't bother; It's a very difficult wheel to reinvent.
|
|
|
|
|
Hi,
How do you localize an image (e.g. flag) so that depending on the culture selected the image (flag) changes. For example if it is English (AU) then the Australian flag will load... if it is German then the Germany flag will load, etc...
I am using C#.NET.
Thank you in advance for your help.
|
|
|
|
|
U need to have various flags stored in your DataBase or Filesystem ...and then based on the culture load the appropriate flag...( actually i don't understand u'r question do u want to load a flag specific to the culture that the client machine belongs to ?)
Koushik
|
|
|
|
|
Hi Koushik,
Thanks for your prompt reply.
I need to localise a jpeg image of some kind. I have decided to pick flags.
I need to insert a lang-locale code.
I am guessing I need to store the country flag under the resource resx file? And depending on the country/language selected it will load the appropriate flag??? Just sure how to do this...
|
|
|
|
|
Hey u can do like that for easy coding store the Flags with filenames like "En-en" I mean same as the culture name and load those images based on the culture
Koushik
|
|
|
|
|
Yeah that is what I want to do...
E.g. 2 cultures:
1. UIStrings.de.resx (German)
2. UIStrings.id.resx (Indonesian)
So do I store the flag image in the resource file under images? Do you know what code I need to put in the form where the picture is?
Thanks for your help
|
|
|
|
|
Thanks Koushik
I have added a flag to UIStrings.resx (default) file and one in the UIStrings.de.resx (German) file.
What is the source code for loading the image?
I am assuming it is similar to a string.
E.g. this.btnOK.Text = res.GetString("OK").
Can you please help with this?
Thanks,
|
|
|
|
|
Hello,
just wanted to ask you ppl how we can add a help feature in a windows app, like the one that shows you the index n search facility. It has something to do with .chm files but I dont know the details.
Any ideas, link??
Thanks in advance
Rocky
You can't climb up a ladder with your hands in your pockets.
|
|
|
|
|
First of all u need to have the .chm file...u can make a .chm file with tools available in the net...try WinChm tool u will get the trial version of it...After making the desired chm file drag a helpProvider control onto your form and attach the chm file to it ( u will find it in the control properties) Now invoke the helpprovider on the help button click
Koushik
|
|
|
|
|
Thanks Koushik that looks pretty helpful
Rocky
You can't climb up a ladder with your hands in your pockets.
|
|
|
|
|
u r welcome dude!
Koushik
|
|
|
|
|
I'm using datalist control in shopping cart. i want show/hide the details of shipping addresses for multiple products
for that i'm using a table (with multiple textboxes) and a button in datalist.
when i'm clicking button in datalist total table's are
visible otherwise all table's are invisible ..
tell me how to hide address details of particular product in
datalist..
suman.c
|
|
|
|
|
|
Rocky.......
I'm not finding any answer in ur reply for show/hide ship details
suman.c
|
|
|
|
|
when i'm clicking button in datalist total table's are
visible otherwise all table's are invisible ..
tell me how to hide address details of particular product in
datalist..
with this I thought you want to show/hide datalist items. I think I was wrong. We can't understand anything when u say you wanna hide a product table coz we're not the one's seeing what you r doin right? So try to explain what u wanna do in terms of .NET object manipulation ok.
Rocky
You can't climb up a ladder with your hands in your pockets.
|
|
|
|
|
|
ur welcome but did that help u out??
Rocky
You can't climb up a ladder with your hands in your pockets.
|
|
|
|
|
I'm explaining u in easiest way ....
when we are clicking a button textbox should be visible.........
when we are clicking again the same button textbox should invisible
Both these controls are placed in datalist......
so that multiple buttons & textboxes are coming I am not able to differentiate the click events when i'm clicking one button all textboxes disappearing.... and if i click again all textboxes disappearing .......
one button should work for one text box ()..........
Help me I think you understood the question........
waiting for ur reply.
|
|
|
|
|
I'm explaining u in easiest way ....
when we are clicking a button textbox should be visible.........
when we are clicking again the same button textbox should invisible
Both these controls are placed in datalist......
so that multiple buttons & textboxes are coming I am not able to differentiate the click events
when i'm clicking one button all textboxes disappearing.... and if i click again all textboxes appearing .......
one button should work for one text box ()..........
Help me I think you understood the question........
waiting for ur reply.
|
|
|
|
|
OK now I got the idea. and I'm gonna try and give u a few guidelines and I Hope it works for u
1st you need to use Javascript. use the getElementById() function in orderto get the column of the textbox u wanna show/hide.
In the button you should make an onclick method and change its text to 'show' when its clicked with text 'Hide' and vice versa
On the basis of this text you can toggle the show/hide functionality in Javascript.
I hope u get it done now..
best of luck
Rocky
You can't climb up a ladder with your hands in your pockets.
|
|
|
|
|
Hi
How to generate a pdf file from a byte array.
I have data in byte array. I want to open a pdf file in new window with Save option.
Any one help on this...
|
|
|
|
|
Open a new window (using Javascript or target="_blank") and request a page for it. Make the page return the byte array as response by using Response.BinaryWrite.
---
single minded; short sighted; long gone;
|
|
|
|
|
i have a dropdownlist in web control.i wanted to retrieve the dropdownlist selectedindex , and for that i want to use the get and set properties .
i am writing the following code.
int index;
public int DropDownListSelecttedIndex
{
get
{
return DropDownList1.SelectedIndex;
}
set
{
index = value;
}
}
the above code is write?
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
Sonia Gupta wrote: the above code is write?
Syntactically it's correct, but logically wrong. You are not assigning the variable index back to Dropdown list.
|
|
|
|
|
public int DropDownListSelecttedIndex
{
get
{
return DropDownList1.SelectedIndex;
}
set
{
index = value;
DropDownList1.selectedindex = value;
}
}
If it would be like that ?Then was it right?
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|