PC Review


Reply
Thread Tools Rate Thread

Best practice - resources in ASP.Net Web Applications

 
 
Peter Larsen [CPH]
Guest
Posts: n/a
 
      5th Sep 2008
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


 
Reply With Quote
 
 
 
 
sloan
Guest
Posts: n/a
 
      5th Sep 2008
Take a peek here:

http://aspalliance.com/726

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


"Peter Larsen [CPH]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>



 
Reply With Quote
 
bruce barker
Guest
Posts: n/a
 
      6th Sep 2008
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
>
>

 
Reply With Quote
 
Peter Larsen [CPH]
Guest
Posts: n/a
 
      6th Sep 2008
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" <(E-Mail Removed)> wrote in message
news:%23%(E-Mail Removed)...
> 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).
>



 
Reply With Quote
 
Peter Larsen [CPH]
Guest
Posts: n/a
 
      6th Sep 2008
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Take a peek here:
>
> http://aspalliance.com/726
>
> Or follow this train:
> http://www.google.com/search?hl=en&q...WebResourceUrl
>



 
Reply With Quote
 
Steven Cheng [MSFT]
Guest
Posts: n/a
 
      8th Sep 2008
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:
(E-Mail Removed).

==================================================
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]" <(E-Mail Removed)>
>References: <(E-Mail Removed)>

<(E-Mail Removed)>
>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" <(E-Mail Removed)> wrote in message
>news:(E-Mail Removed)...
>> Take a peek here:
>>
>> http://aspalliance.com/726
>>
>> Or follow this train:
>> http://www.google.com/search?hl=en&q...WebResourceUrl
>>

>
>
>


 
Reply With Quote
 
Peter Larsen [CPH]
Guest
Posts: n/a
 
      9th Sep 2008
Hi Steven,

Thanks for your comments and the links.

/Peter




"Steven Cheng [MSFT]" <(E-Mail Removed)> wrote in message
news:rj0$(E-Mail Removed)...
> 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



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
any suggestion about the online practice resources? oliver Windows Vista Networking 1 3rd Nov 2008 12:31 PM
VBA resources for scientific applications jvbeaupre@aol.com Microsoft Excel Discussion 1 11th Mar 2006 02:25 PM
Best practice for modularizing applications Shannon Lloyd Microsoft Dot NET Compact Framework 0 24th Feb 2005 07:40 AM
SW Architecture: OOP in Mulit-Tier-Applications good practice anymore ? Gordon Microsoft C# .NET 1 2nd Dec 2004 04:54 PM
Best practice for writing ASP.NET applications ? Zenobia Microsoft ASP .NET 1 5th Jul 2004 11:53 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:41 AM.