AspdotnetCodes.com
Search
Articles
Books
Resources
Asp.Net News
Downloads
Free Tech Magazines
Asp.Net Web Hosting
Archives
Softwares
Newsletter
Suggest Us
Link to Us
Feeds Subscription
Articles
Questions & Answers
Tips & Tricks
 Limitations in Global resource file
Posted by Shanu_Sudha on  2/9/2010 1:33:09 AM Category: C#
Add to my favorites
Email to friend
Dear All.,

Is there any limitations / Restrictions in Global resource file..??

I mean, Limitations While bind Image (Content length) or string (Size) etc...




Thanks in Advance...

Post Your Reply Post New Question

 Viewer's Reply
Limitations of Asp.Net Global Resource Files
Answered By Moderator1 on 2/12/2010 9:57:18 PM
Hi,

As far as I know there is no specific limitations when considered with Global Resource files. If you know any please post it here. So that we can discuss and find solution for overcome the issue.
 
No limitations
Answered By Shanu_Sudha on 2/13/2010 5:15:38 AM
Dear All,

Upto my knowledge there is no specific limitations in global resource file..

I have tested this by giving 50,000 and above fields (string).
As well as I have tested this by applying image more than 2MB..

Really I was wonder. It works good...

But If anyone find some limitations, Kindly Post here... This will be very helpful to my task...

Thanks a lot...
 
How to Access Image Field From Global Resource File
Answered By Moderator1 on 2/13/2010 8:11:47 PM
Hi,

Could you please let us know how you access the Image field in Global Resource File from the Aspx pages? It will be very good tips for our users. Please post it below. Thanks.
 
Hi
Answered By Shanu_Sudha on 2/16/2010 4:38:38 AM
Really I'm quite busy..
I will post it as soon as possible.. Sorry for that.
 
Image field in Global Resource
Answered By Shanu_Sudha on 3/4/2010 2:29:06 AM
In .aspx page:

<asp:Image ID="imgSample" runat="server" />

In Global Resource file:

Name : imgResource1
Value : Images/book1.jpg (Path of the Image)

In aspx.cs page:

using System.Resources;

ResourceManager rm = new ResourceManager("Resources.Resource", Assembly.Load("App_GlobalResources"));

imgSample.ImageUrl = rm.GetObject("imgResource1").ToString();


In this above code,

Resources.Resource------> is your resource file name
App_GlobalResource------> is your folder which contains your resource file.

Thank u...
 
Post Your Reply If you still have problem, post it again under this reply for better response.

 
Sponsored by
No Nonsense XML Web Development With PHP - Free 146 Page Preview!
Sexy Web Design - Free 71 Page Preview!
Building a Web Application Security Program