Eg:
< P >
Implicit:
< ASP: Label ID = "LBL" Runat = "Server" Meta: resourcekey = "LBL" /> </ P >
< P >
Explicit:
< ASP: Label ID = "Lbl2" Runat = "Server" Text = "<% $ Resources: LBL. Text %>" Tooltip = "<% $ Resources: LBL. tooltip %>" />
</ P >
< P >
Global:
< ASP: Label ID = "Lbl3" Runat = "Server" Text = "<% $ Resources: myglobal, globaltext %>" />
</ P >
Search resource values programmatically:
Response. Write ( " Getlocalresourceobject: " + This . Getlocalresourceobject ( " String1 " ) + " <Br> " );
Response. Write ( " Getglobalresourceobject: " + This . Getglobalresourceobject ( " Gblresource " , " Chinese " ) + " <Br> " );
the system will compile every file in the app_globalresources folder into a class, which can be used as follows: Asp: linkbutton id = " sdfsd " runat = " server " ><% = resources. gblresource. chinese %> Asp: linkbutton >