473,396 Members | 1,799 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Best practice - resources in ASP.Net Web Applications

Hi,

I'm looking for some "best practice" help related to web applications and
recources (images, strings, files etc).

In Windows Forms Applications its normal to save all kinds of resources in
the applications recource file - its easy to access, and you always knows
where the resources are (and more).

In web applications, you would normally have lots of icons, buttons etc. for
use in the pages.
Where would you put these resources - in the recource file ??

Thank you in advance.

BR
Peter
Sep 5 '08 #1
6 1975
Take a peek here:

http://aspalliance.com/726

Or follow this train:
http://www.google.com/search?hl=en&q...WebResourceUrl
"Peter Larsen [CPH]" <Pe*********@community.nospamwrote in message
news:ul*************@TK2MSFTNGP06.phx.gbl...
Hi,

I'm looking for some "best practice" help related to web applications and
recources (images, strings, files etc).

In Windows Forms Applications its normal to save all kinds of resources in
the applications recource file - its easy to access, and you always knows
where the resources are (and more).

In web applications, you would normally have lots of icons, buttons etc.
for use in the pages.
Where would you put these resources - in the recource file ??

Thank you in advance.

BR
Peter

Sep 5 '08 #2
for packaged components its handy to use resources for images,
stylesheets, etc. But for a website its a bad idea. the performance is
much lower and chaching may be effected. its common to have a common
image dir that is shared between websites (so the image is cached
between all).

-- bruce (sqlwork.com)

Peter Larsen [CPH] wrote:
Hi,

I'm looking for some "best practice" help related to web applications and
recources (images, strings, files etc).

In Windows Forms Applications its normal to save all kinds of resources in
the applications recource file - its easy to access, and you always knows
where the resources are (and more).

In web applications, you would normally have lots of icons, buttons etc. for
use in the pages.
Where would you put these resources - in the recource file ??

Thank you in advance.

BR
Peter

Sep 6 '08 #3
Hi Bruce,

Yes it is slow to read images from the resource file - good point.
In winforms, i usually loads the resources into memory and keeps them there
as long as they are visible. But for webapplications, that works
differently.

Thanks for your comment.
BR
Peter

"bruce barker" <no****@nospam.comwrote in message
news:%2******************@TK2MSFTNGP05.phx.gbl...
for packaged components its handy to use resources for images,
stylesheets, etc. But for a website its a bad idea. the performance is
much lower and chaching may be effected. its common to have a common image
dir that is shared between websites (so the image is cached between all).

Sep 6 '08 #4
Hi Sloan,

Thanks for the links.
GetWebResourceUrl() seems to be the answer - i will definitely read more
about that way to do it.

BR
Peter
"sloan" <sl***@ipass.netwrote in message
news:un**************@TK2MSFTNGP02.phx.gbl...
Take a peek here:

http://aspalliance.com/726

Or follow this train:
http://www.google.com/search?hl=en&q...WebResourceUrl

Sep 6 '08 #5
Hi Peter,

For ASP.NET (start from 2.0), it also provide very rich support on
localization/globalization functionality. Generally there are two ways to
use localized resources:

1. Declarative approach via attribute and localize expression in aspx
template, you can bind resource in resource file to control property

2. Use code to programmtically load resource(global or local page resource).

here are some further good resource on ASP.NET globalization & localization:
#Internationalizing Your Application
http://quickstarts.asp.net/QuickStar...on/default.asp
x

#ASP.NET 2.0 Localization (Video, Whitepaper, and Database Provider
Support)
http://weblogs.asp.net/scottgu/archi...Localization-_
2800_Video_2C00_-Whitepaper_2C00_-and-Database-Provider-Support_2900_.aspx

#Extending the ASP.NET 2.0 Localization Model with a Database Resource
Provider
http://weblogs.asp.net/scottgu/archi...e-asp-net-2-0-
localization-model-with-a-database-resource-provider.aspx

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subs...#notifications.

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://support.microsoft.com/select/...tance&ln=en-us.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
>From: "Peter Larsen [CPH]" <Pe*********@community.nospam>
References: <ul*************@TK2MSFTNGP06.phx.gbl>
<un**************@TK2MSFTNGP02.phx.gbl>
>Subject: Re: Best practice - resources in ASP.Net Web Applications
Date: Sat, 6 Sep 2008 11:57:01 +0200
>Hi Sloan,

Thanks for the links.
GetWebResourceUrl() seems to be the answer - i will definitely read more
about that way to do it.

BR
Peter
"sloan" <sl***@ipass.netwrote in message
news:un**************@TK2MSFTNGP02.phx.gbl...
>Take a peek here:

http://aspalliance.com/726

Or follow this train:
http://www.google.com/search?hl=en&q...WebResourceUrl


Sep 8 '08 #6
Hi Steven,

Thanks for your comments and the links.

/Peter


"Steven Cheng [MSFT]" <st*****@online.microsoft.comwrote in message
news:rj**************@TK2MSFTNGHUB02.phx.gbl...
Hi Peter,

For ASP.NET (start from 2.0), it also provide very rich support on
localization/globalization functionality. Generally there are two ways to
use localized resources:

1. Declarative approach via attribute and localize expression in aspx
template, you can bind resource in resource file to control property

2. Use code to programmtically load resource(global or local page
resource).

here are some further good resource on ASP.NET globalization &
localization:
#Internationalizing Your Application
http://quickstarts.asp.net/QuickStar...on/default.asp
x

#ASP.NET 2.0 Localization (Video, Whitepaper, and Database Provider
Support)
http://weblogs.asp.net/scottgu/archi...Localization-_
2800_Video_2C00_-Whitepaper_2C00_-and-Database-Provider-Support_2900_.aspx

#Extending the ASP.NET 2.0 Localization Model with a Database Resource
Provider
http://weblogs.asp.net/scottgu/archi...e-asp-net-2-0-
localization-model-with-a-database-resource-provider.aspx

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

Sep 9 '08 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: DrUg13 | last post by:
In java, this seems so easy. You need a new object Object test = new Object() gives me exactly what I want. could someone please help me understand the different ways to do the same thing in...
136
by: Matt Kruse | last post by:
http://www.JavascriptToolbox.com/bestpractices/ I started writing this up as a guide for some people who were looking for general tips on how to do things the 'right way' with Javascript. Their...
3
by: Peter Bates | last post by:
Hi, I'm just starting out with C# and WMI. Before I get to far I thought I'd ask what people have found out there. I know where to find all the basic documentation, but i want to know if...
1
by: Zenobia | last post by:
Hi, Does anyone have any good links for the best practice when writing ASP.NET applications ? I'm looking for all-round general clues for newbies and pit-falls to avoid.
1
by: JohnH. | last post by:
Hi, Is there a better (best practice) way to do this? I have developed a large set of ASP.NET applications in C#. Like most applications I have a set of utility pages that can be called by...
3
by: cbrown | last post by:
I am rebuilding an existing application that relies on an SQL DB. The app is a scheduling/employee management program. My question pertains to best practices in dotnet and database. I use a 3...
13
by: Alan Silver | last post by:
Hello, MSDN (amongst other places) is full of helpful advice on ways to do data access, but they all seem geared to wards enterprise applications. Maybe I'm in a minority, but I don't have those...
13
by: G | last post by:
Hello, Looking for opinions on a fairly simple task, new to ASP.net (C#) and want to make sure I do this as efficiently as possible. I have a web based form, and I need to run some SQL before...
41
by: =?Utf-8?B?VGltIE1hcnNkZW4=?= | last post by:
Hi, I am after suggestions on the best practice declaring and destroying objects. some example code: Private Sub MySub Dim frmMyForm As MyForm Try
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.