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... |
|
|
|