Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Nov 14th, 2007, 11:38 AM   #1
JO90
Newbie
 
Join Date: Nov 2007
Posts: 16
Rep Power: 0 JO90 is on a distinguished road
Cool Help with Globalization or Localization.

I created a Web site.[Called 'KOP'] I added a web Form.[called 'ZX.aspx']
I added a TextBox called 'TB1'.
I added a .resx[file] called APP.resx
I added 1 string in the GRID THAT SHOWS. [(NAME=)JO (value=)INTELLIGENT]
Then I wrote this code inside the PageLoad of my ZX.aspx[webForm]:
Dim QQ As ResourceManager = New ResourceManager("KOP.AppStrings", GetType(ZX).Assembly)

TB1.Text = QQ.GetString("JO")





Now , when I run the WebForm a RunTime ERROR says:
"
Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "CULTUREInfoClass.AppStrings.resources" was correctly embedded or linked into assembly "App_Web_b1eu8ty0" at compile time, or that all the satellite assemblies required are loadable and fully signed. "




What shall I do ?


I think there is No mistake in my procedure but the RunTime cannot find 'JO' [string].



HELP HELP.
JO90 is offline   Reply With Quote
Old Nov 14th, 2007, 7:27 PM   #2
Ghost
Man Bear Pig Hunter
 
Ghost's Avatar
 
Join Date: Jul 2005
Location: NorCal, USA
Posts: 290
Rep Power: 4 Ghost is on a distinguished road
Re: Help with Globalization or Localization.

I'm guessing your just trying to pull a string from the web.config file? Try this.

VB.Net
TB1.Text = ConfigurationManager.AppSettings("JO")

Web.config
<?xml version="1.0"?>
<configuration>
     <appSettings>
          <add key="JO" value="JO String Value"/>
     </appSettings>
</configuration>
Ghost is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 1:19 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC