Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
| Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 28th, 2007, 07:07 AM
Friend of Wrox
 
Join Date: May 2005
Location: , , .
Posts: 149
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to access local resources programaticaly?

Hi,
I have created a local resources folder with some new language files
i can set the labels and other controls through the meta:resourcekey
but i want to set some of the values programaticaly in my vb.net code?
how is that
i searched google but i found no useful article
please give example
thanks

 
Old July 29th, 2007, 12:47 AM
Authorized User
 
Join Date: Jul 2007
Location: , , .
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hello,

try this method: this.GetLocalResourceObject("resourcekey")

this method takes the resource key as it is in the resource file and returns the corresponding value as an object.

note that the method searches in the correct resource file according to the settings of the current thread











Similar Threads
Thread Thread Starter Forum Replies Last Post
access the local variable value out side ravi_sri24 XSLT 17 May 7th, 2008 08:43 AM
Stored Procedure to Local Access Table mmcdonal Access VBA 3 September 21st, 2007 12:00 PM
Can't access local file in App_Data folder VictorVictor ASP.NET 2.0 Professional 8 January 23rd, 2007 10:15 AM
Connecting VB Proj to a local Access DB jpaulptr Access VBA 0 May 27th, 2004 12:30 PM
Retrieve data from local Access files aslyon ADO.NET 2 October 31st, 2003 08:52 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.