Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
Can you explain the fundamentals of “GetGlobalResourceObject” and “GetLocalResourceObject” functions?
Can you explain the fundamentals of “GetGlobalResourceObject” and “GetLocalResourceObject” functions?
✍: Guest
These two functions belong to the HttpContext object. Using it you can get the object reference of the resource object. For instance you can see from the below code snippet we have got reference to the Global resource object and we are trying to get the value for
“lblUserIdresource1” key.
lblUserId.Text=HttpContext.GetGlobalResourceObject("Resource",
"lblUserIdResource1").ToString();
Note :- In the same globalization folder there is “LoginScreenUsingGetGlobal.aspx” which
demonstrates how “GetGlobalResource” works.
One short note because “GetGlobalResourceObject” and “GetLocalResourceObject” operate from with in current HttpContext.It uses what the regional settings are sent from the browser end.
2007-11-02, 8014👍, 0💬
Popular Posts:
How To Control Horizontal Alignment? - XHTML 1.0 Tutorials - Understanding Tables and Table Cells By...
Managed Code and Unmanaged Code related ASP.NET - How do you hide Public .NET Classes and other publ...
In below sample code if we create a object of class2 which constructor will fire first? Public Class...
How Many Tags Are Defined in HTML 4.01? There are 77 tags defined in HTML 4.01: a abbr acronym addre...
How To Enter Numeric Values as HEX Numbers? - MySQL FAQs - Introduction to SQL Basics If you want to...