How to add globalresource for menu which is loaded frm database

Posted by Oswaldlily under ASP.NET on 8/2/2011 | Points: 10 | Views : 984 | Status : [Member] | Replies : 2
I ve added my menu dynamically from database...
in this case, how to add globalresource for values from database so that while clickin spanish my menu ll display in spanish

note: my menu items in database




Responses

Posted by: SheoNarayan on: 8/2/2011 [Administrator] HonoraryPlatinum | Points: 25

Up
0
Down
In this case you should have column something like languageId in the database and your menu text should be stored into that language. From the UI you need to pass the languageId and based on that retrieve the menu records from the database.

ie your database should contains menu of all languages and based on the languageid passed you should retrieve the menu and bind it.


Regards,
Sheo Narayan
http://www.dotnetfunda.com

Oswaldlily, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Oswaldlily on: 8/3/2011 [Member] Starter | Points: 25

Up
0
Down
Code Menu Codeid

A Detail
B Forum
C open A
D copy A
E Paste A

hey this is my table.
Detail and forum are main menu
open/copy/paste are submenu for Detail

now if i need to add global resource (french) for my Menu
how to do it?


Oswaldlily, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response