Click here to Skip to main content
15,798,278 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Dir Function - Network drive Pin
No-e23-Feb-07 9:37
No-e23-Feb-07 9:37 
GeneralRe: Dir Function - Network drive Pin
kubben23-Feb-07 9:56
kubben23-Feb-07 9:56 
QuestionHow to show 2 gif files as one in a aspx file Pin
Member 385807123-Feb-07 5:46
Member 385807123-Feb-07 5:46 
AnswerRe: How to show 2 gif files as one in a aspx file Pin
Guffa23-Feb-07 6:52
Guffa23-Feb-07 6:52 
AnswerRe: How to show 2 gif files as one in a aspx file Pin
badgrs23-Feb-07 6:55
badgrs23-Feb-07 6:55 
QuestionHow to compute absolute x, y coordinate of a HTML element using Java Script? Pin
balu chettri23-Feb-07 5:44
balu chettri23-Feb-07 5:44 
Questionhow can send a video on a mobile using asp.net Pin
Atif Ali Bhatti23-Feb-07 2:45
Atif Ali Bhatti23-Feb-07 2:45 
QuestionResource problem after converting from ASP.NET 1.1 to ASP.NET 2.0 Pin
MD1222-Feb-07 19:56
MD1222-Feb-07 19:56 
:(I'm having problems with my resource manager in ASP.NET 2.0 after conversion
from ASP.NET 1.1.

Here is a background:

In ASP.NET 1.1
All my user controls and aspx pages inherit from base classes. A base class
includes this property (among others...):

Private m_rscResources As System.Resources.ResourceManager

Public ReadOnly Property rscResource() As System.Resources.ResourceManager
Get
If m_rscResources Is Nothing Then
m_rscResources = New
System.Resources.ResourceManager("MyPortalNamespac e.Strings",
System.Reflection.Assembly.GetExecutingAssembly)
Return m_rscResources
Else
Return m_rscResources
End If
End Get
End Property

In my application root folder I have two files. One strings.resx and one
strings.sv.resx. When I call the rscResource.GetString method I simply use
the tag name to get the translation.

Label1.Text = rscResource.GetString("First name")

In 1.1 this works absolutely fine. However, In 2.0 (after conversion), it's
not working. The error message I get from .NET is:

System.Resources.MissingManifestResourceException was unhandled by user code
Message="Could not find any resources appropriate for the specified
culture or the neutral culture. Make sure
"MyPortalNamespace.Strings.resources" was correctly embedded or linked into
assembly "App_Code.lkep0udn" at compile time, or that all the satellite
assemblies required are loadable and fully signed."

I've tried to dynamically get the current executing assembly name like this:

m_rscResources = New
System.Resources.ResourceManager(System.Reflection .Assembly.GetExecutingAssembly.GetName.Name
& ".Strings", System.Reflection.Assembly.GetExecutingAssembly)

Same error message (but 'MyPortalNamespace' is replaced).

I've tried a number of things to work around this, but I still get this
error message. I've tried placing the resource files into different
directories including App_Code, App_GlobalResources, application root etc.
None is making it better.

So, here I stand...

I want to clarify that I know how you can use resources in 2.0, but that's
from scratch. I have hundreds and hundreds of places where I use
rscResource.GetString("MyKey") and I really don't feel I want to change all
that now. p
please suggest me how to make it possible
QuestionCalling external DLL methods Pin
earlgraham22-Feb-07 12:58
earlgraham22-Feb-07 12:58 
AnswerRe: Calling external DLL methods Pin
pHysiX22-Feb-07 13:05
pHysiX22-Feb-07 13:05 
GeneralRe: Calling external DLL methods Pin
earlgraham22-Feb-07 13:51
earlgraham22-Feb-07 13:51 
GeneralRe: Calling external DLL methods Pin
pHysiX23-Feb-07 21:44
pHysiX23-Feb-07 21:44 
GeneralCalling external DLL methods Pin
pHysiX23-Feb-07 21:45
pHysiX23-Feb-07 21:45 
QuestionHow to debug Pin
No-e22-Feb-07 9:12
No-e22-Feb-07 9:12 
AnswerRe: How to debug Pin
Vasudevan Deepak Kumar22-Feb-07 18:44
Vasudevan Deepak Kumar22-Feb-07 18:44 
AnswerRe: How to debug Pin
Paddy Boyd23-Feb-07 0:49
Paddy Boyd23-Feb-07 0:49 
GeneralRe: How to debug Pin
No-e23-Feb-07 3:05
No-e23-Feb-07 3:05 
QuestionProblems with query pagination in asp.net Pin
haggenx22-Feb-07 4:35
haggenx22-Feb-07 4:35 
AnswerRe: Problems with query pagination in asp.net Pin
Vasudevan Deepak Kumar22-Feb-07 19:06
Vasudevan Deepak Kumar22-Feb-07 19:06 
QuestionSending of email in VWD 2005 Pin
zareee21-Feb-07 23:10
zareee21-Feb-07 23:10 
AnswerRe: Sending of email in VWD 2005 Pin
Vasudevan Deepak Kumar22-Feb-07 18:45
Vasudevan Deepak Kumar22-Feb-07 18:45 
QuestionHow to get the ceckbox value in to an Excel File Pin
antithx21-Feb-07 22:50
antithx21-Feb-07 22:50 
AnswerRe: How to get the ceckbox value in to an Excel File Pin
Michael Sync21-Feb-07 23:38
Michael Sync21-Feb-07 23:38 
GeneralRe: How to get the ceckbox value in to an Excel File Pin
Michael Sync21-Feb-07 23:54
Michael Sync21-Feb-07 23:54 
QuestionFrom php - passing Array to Javascript [modified] Pin
hiral_shah21-Feb-07 22:32
hiral_shah21-Feb-07 22:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.