How to embed resource in ASP.Net 2.0 web application?

T

Tomasz J

Hello Developers,

It may sound like a stupid question, but how to embed a resource in ASP.Net
2.0 web application?
I mean, without using a separate library. There is no "build action"
property.

Thanks,

Tomasz J
 
T

Tomasz J

Mark Rae said:
Is this not what you're looking for, then: ?
http://aspalliance.com/726

Nope, it is not the answer. There are plenty of examples showing how to
embed resource in some control library and then use from Web Application,
but it is not the same thing.

Why do I want to embed resource in Web Application? I need it for my user
control and user controls (.ascx), as opposed to web controls, must be part
of the application. I can, of course create a separate dll for this
resource, but it is nonsense.

Tomasz J
 
S

Steven Cheng[MSFT]

Hi Tomasz,

For the ASP.NET 2.0 application, do you mean the default "Web Site" project
model?

For ASP.NET 2.0 web site application, it by default do not precompile and
generate dll at development time(without precompilation) comparing to the
ASP.NET 1.X/VS 2003 web project. However, for localization resource, it
provide much enhanced interfaces to manipulate them at design-time. You can
add resources (as resx files) as either "GlobalResource" or
"LocalResource", global resource can be put into the "App_GlobalResources"
folder of your ASP.NET 2.0 project while local resource can be put into a
"App_LocalResources" folder (can be created for each sub folder). The VS
2005 resource designer can let you add different kinds of resource items
into it(such as string, image ,file ,......)


#Resources and Localization in ASP.NET 2.0
http://msdn.microsoft.com/msdnmag/issues/06/08/BasicInstincts/

#ASP.NET Web Page Resources Overview
http://msdn2.microsoft.com/en-us/library/ms227427.aspx

Is this what you want? If you have any further questions, please feel free
to post here.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead



==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.



Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.

==================================================


This posting is provided "AS IS" with no warranties, and confers no rights.
 
S

Steven Cheng[MSFT]

Hi Tomasz,

Have you any further questions on this? If there is anything else need
help, please feel free to post here.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top