Click here to Skip to main content
15,884,177 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Dir Function - Network drive Pin
No-e23-Feb-07 8:37
No-e23-Feb-07 8:37 
GeneralRe: Dir Function - Network drive Pin
kubben23-Feb-07 8:56
kubben23-Feb-07 8:56 
QuestionHow to show 2 gif files as one in a aspx file Pin
Member 385807123-Feb-07 4:46
Member 385807123-Feb-07 4:46 
AnswerRe: How to show 2 gif files as one in a aspx file Pin
Guffa23-Feb-07 5:52
Guffa23-Feb-07 5:52 
AnswerRe: How to show 2 gif files as one in a aspx file Pin
badgrs23-Feb-07 5:55
badgrs23-Feb-07 5:55 
QuestionHow to compute absolute x, y coordinate of a HTML element using Java Script? Pin
balu chettri23-Feb-07 4:44
balu chettri23-Feb-07 4:44 
Questionhow can send a video on a mobile using asp.net Pin
Atif Ali Bhatti23-Feb-07 1:45
Atif Ali Bhatti23-Feb-07 1:45 
QuestionResource problem after converting from ASP.NET 1.1 to ASP.NET 2.0 Pin
MD1222-Feb-07 18:56
MD1222-Feb-07 18: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 11:58
earlgraham22-Feb-07 11:58 
AnswerRe: Calling external DLL methods Pin
pHysiX22-Feb-07 12:05
pHysiX22-Feb-07 12:05 
GeneralRe: Calling external DLL methods Pin
earlgraham22-Feb-07 12:51
earlgraham22-Feb-07 12:51 
GeneralRe: Calling external DLL methods Pin
pHysiX23-Feb-07 20:44
pHysiX23-Feb-07 20:44 
GeneralCalling external DLL methods Pin
pHysiX23-Feb-07 20:45
pHysiX23-Feb-07 20:45 
QuestionHow to debug Pin
No-e22-Feb-07 8:12
No-e22-Feb-07 8:12 
AnswerRe: How to debug Pin
Vasudevan Deepak Kumar22-Feb-07 17:44
Vasudevan Deepak Kumar22-Feb-07 17:44 
AnswerRe: How to debug Pin
Paddy Boyd22-Feb-07 23:49
Paddy Boyd22-Feb-07 23:49 
GeneralRe: How to debug Pin
No-e23-Feb-07 2:05
No-e23-Feb-07 2:05 
QuestionProblems with query pagination in asp.net Pin
haggenx22-Feb-07 3:35
haggenx22-Feb-07 3:35 
AnswerRe: Problems with query pagination in asp.net Pin
Vasudevan Deepak Kumar22-Feb-07 18:06
Vasudevan Deepak Kumar22-Feb-07 18:06 
QuestionSending of email in VWD 2005 Pin
zareee21-Feb-07 22:10
zareee21-Feb-07 22:10 
AnswerRe: Sending of email in VWD 2005 Pin
Vasudevan Deepak Kumar22-Feb-07 17:45
Vasudevan Deepak Kumar22-Feb-07 17:45 
QuestionHow to get the ceckbox value in to an Excel File Pin
antithx21-Feb-07 21:50
antithx21-Feb-07 21:50 
AnswerRe: How to get the ceckbox value in to an Excel File Pin
Michael Sync21-Feb-07 22:38
Michael Sync21-Feb-07 22:38 
GeneralRe: How to get the ceckbox value in to an Excel File Pin
Michael Sync21-Feb-07 22:54
Michael Sync21-Feb-07 22:54 
QuestionFrom php - passing Array to Javascript [modified] Pin
hiral_shah21-Feb-07 21:32
hiral_shah21-Feb-07 21: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.