Click here to Skip to main content
15,891,567 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi,

How can i change the message name based on the language selected.

C#
OnClientClick="return confirm('Are you certain you want to delete this product?');">

I want to change the message based on language, when i am clicking the button

Regards,
S.Inayat Basha.
Posted
Updated 2-Nov-11 1:35am
v4
Comments
member60 2-Nov-11 7:41am    
sorry question is confusing,what is message name? and what are the languages please try to elaborate
Prince Antony G 16-Nov-11 5:58am    
need more clarification? what is your requirement?
inayat basha 16-Nov-11 6:00am    
sorry i didn't get you...can you please tell me how can i help you
Prince Antony G 16-Nov-11 6:02am    
what is ur question? I didnt understood.
inayat basha 16-Nov-11 6:04am    
ohhh.. actually when the user is clicking on a button i have to show the confirm message based on the language, which user has selected.

what do u mean by message name ,if you are thinking to chabge the message itself use simple condition as:
C#
if(condtion)// check for the language
{
message1
}
else if(....
 
Share this answer
 
v2
Comments
inayat basha 2-Nov-11 7:43am    
How can i write this in aspx file....i am using this only for showing a confirm message
member60 2-Nov-11 7:52am    
first elaborate what i asked in comment as response to your question
You can use localization with localized resources:
http://msdn.microsoft.com/en-us/library/ms228208.aspx[^]

Good luck!
 
Share this answer
 
Comments
inayat basha 2-Nov-11 7:42am    
Done in Clientclick only have 2 change the message i tried with writing "<%$ Resources:Resource, message %>" not working
E.F. Nijboer 2-Nov-11 15:14pm    
Did you create the language resources? Check out the walk through: http://msdn.microsoft.com/en-us/library/fw69ke6f.aspx

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900