![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Nov 2007
Posts: 16
Rep Power: 0
![]() |
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. ![]() |
|
|
|
|
|
#2 |
|
Man Bear Pig Hunter
Join Date: Jul 2005
Location: NorCal, USA
Posts: 290
Rep Power: 4
![]() |
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> |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|